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