mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
dockerng: use error from modules.dockerng in states' __virtual__
This improves the return value for errors in __virtual__ by using the information from `modules.dockerng`. Ref: https://github.com/saltstack/salt/issues/27643#issuecomment-148942821
This commit is contained in:
parent
9c974c9a41
commit
7a2c80cf6f
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ def __virtual__():
|
|||
_validate_input, globals()
|
||||
)
|
||||
return __virtualname__
|
||||
return False
|
||||
return (False, __modules__.missing_fun_string('dockerng.version'))
|
||||
|
||||
|
||||
def _format_comments(comments):
|
||||
|
|
Loading…
Add table
Reference in a new issue