__virtual__() now returns a message for vmadm

This commit is contained in:
Jorge Schrauwen 2015-11-14 10:20:39 +00:00
parent 84be609010
commit aec2908348

View File

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