def __virtual__():
    '''
    Only load the module if apache is installed
    '''
    cmd = _detect_os()
    if salt.utils.path.which(cmd) and __grains__['os_family'] == 'Debian':
        return __virtualname__
    return (False, 'apache execution module not loaded: apache not installed.')
def __virtual__ ( ) : cmd = _detect_os ( ) if salt . utils . path . which ( cmd ) and __grains__ [ 'os_family' ] == 'Debian' : return __virtualname__ return ( False , 'apache execution module not loaded: apache not installed.' )
Only load the module if apache is installed