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