def __virtual__():
    if ENABLED:
        return 'uptime'
    return (False, 'uptime module needs the python requests module to work')
Only load this module if the requests python module is available
dataset/ETHPy150Open saltstack/salt/salt/modules/uptime.py/__virtual__