def __virtual__():
    if salt.utils.is_smartos_globalzone() and _check_vmadm():
        return __virtualname__
    return (
        False,
        '{0} module can only be loaded on SmartOS computed nodes'.format(
            __virtualname__
        )
    )
Provides vmadm on SmartOS
dataset/ETHPy150Open saltstack/salt/salt/modules/smartos_vmadm.py/__virtual__