def __virtual__():
    if 'haproxy.get_sessions' in __salt__:
        return __virtualname__
    else:
        return False
Only load the module if haproxyctl module is installed
dataset/ETHPy150Open saltstack/salt/salt/beacons/haproxy.py/__virtual__