mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
__virtual__() now returns a message for vmadm
This commit is contained in:
parent
84be609010
commit
aec2908348
@ -50,7 +50,12 @@ def __virtual__():
|
||||
'''
|
||||
if salt.utils.is_smartos_globalzone() and _check_vmadm():
|
||||
return __virtualname__
|
||||
return False
|
||||
return (
|
||||
False,
|
||||
'{0} module can only be loaded on SmartOS computed nodes'.format(
|
||||
__virtualname__
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
def _exit_status(retcode):
|
||||
|
Loading…
Reference in New Issue
Block a user