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