__virtual__() now returns a message for imgadm

This commit is contained in:
Jorge Schrauwen 2015-11-14 10:21:43 +00:00
parent aec2908348
commit 7a2719ec76

View File

@ -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():