def __virtual__():
    return 'lvs_service' if 'lvs.get_rules' in __salt__ else False
Only load if the lvs module is available in __salt__
dataset/ETHPy150Open saltstack/salt/salt/states/lvs_service.py/__virtual__