__modules__ isn't a global, although __salt__ is

This method is attempting to access the loader so that it can get an error message. The module loader is `__salt__` not `__modules__`. This before was throwing an exception in __virtual__ if dockerng.version wasn't in the modules. Pylint was also complaining about this, so I've remove the pylint override that was placed here as well.
This commit is contained in:
Thomas Jackson 2015-11-12 09:53:18 -08:00
parent c734cb8876
commit f49502fd48

View file

@ -75,7 +75,7 @@ def __virtual__():
_validate_input, globals()
)
return __virtualname__
return (False, __modules__.missing_fun_string('dockerng.version')) # pylint: disable=E0602
return (False, __salt__.missing_fun_string('dockerng.version'))
def _format_comments(comments):