def __virtual__():
    if omapi_support:
        return 'omapi'
    return (False, 'The omapi execution module cannot be loaded: '
            'the pypureomapi python library is not available.')
Confirm pypureomapi is available.
dataset/ETHPy150Open saltstack/salt/salt/modules/omapi.py/__virtual__