Example #1
0
    def __init__(self, *args, **kwargs):
        self._plugin = cache_loader.get(C.CACHE_PLUGIN)
        self._display = display

        if self._plugin is None:
            self._display.warning("Failed to load fact cache plugins")
            return
Example #2
0
    def __init__(self, *args, **kwargs):
        self._plugin = cache_loader.get(C.CACHE_PLUGIN)
        # Backwards compat: self._display isn't really needed, just import the global display and use that.
        self._display = display

        if self._plugin is None:
            display.warning("Failed to load fact cache plugins")
            return
Example #3
0
    def __init__(self, *args, **kwargs):
        self._plugin = cache_loader.get(C.CACHE_PLUGIN)
        # Backwards compat: self._display isn't really needed, just import the global display and use that.
        self._display = display

        if self._plugin is None:
            display.warning("Failed to load fact cache plugins")
            return
Example #4
0
    def __init__(self, *args, **kwargs):

        self._plugin = cache_loader.get(C.CACHE_PLUGIN)
        if not self._plugin:
            raise AnsibleError('Unable to load the facts cache plugin (%s).' %
                               (C.CACHE_PLUGIN))

        # Backwards compat: self._display isn't really needed, just import the global display and use that.
        self._display = display
Example #5
0
    def __init__(self, *args, **kwargs):
        self._plugin = cache_loader.get(C.CACHE_PLUGIN)
        if not self._plugin:
            raise AnsibleError(
                'Unable to load the facts cache plugin (%s)\n'
                'Check fact cache config options :\n'
                'Current values:\n'
                '    fact_caching: %s\n'
                '    fact_caching_connection: %s' %
                (C.CACHE_PLUGIN, C.CACHE_PLUGIN, C.CACHE_PLUGIN_CONNECTION))

        # Backwards compat: self._display isn't really needed, just import the global display and use that.
        self._display = display

        if self._plugin is None:
            display.warning("Failed to load fact cache plugins")
            return
Example #6
0
 def __init__(self, *args, **kwargs):
     self._plugin = cache_loader.get(C.CACHE_PLUGIN)
     if self._plugin is None:
         # FIXME: this should be an exception
         return
Example #7
0
 def __init__(self, *args, **kwargs):
     self._plugin = cache_loader.get(C.CACHE_PLUGIN)
     if self._plugin is None:
         # FIXME: this should be an exception
         return
Example #8
0
 def __init__(self, *args, **kwargs):
     self._plugin = cache_loader.get(C.CACHE_PLUGIN)
     if self._plugin is None:
         return
Example #9
0
 def __init__(self, *args, **kwargs):
     self._plugin = cache_loader.get(C.CACHE_PLUGIN)
     if self._plugin is None:
         return