Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #8
0
 def __init__(self, *args, **kwargs):
     self._plugin = cache_loader.get(C.CACHE_PLUGIN)
     if self._plugin is None:
         return
Beispiel #9
0
 def __init__(self, *args, **kwargs):
     self._plugin = cache_loader.get(C.CACHE_PLUGIN)
     if self._plugin is None:
         return