mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
__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:
parent
c734cb8876
commit
f49502fd48
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue