def __virtual__():
    if salt.utils.which('guestmount'):
        return 'guestfs'
    return (False, 'The guestfs execution module cannot be loaded: guestmount binary not in path.')
Only load if libguestfs python bindings are installed
dataset/ETHPy150Open saltstack/salt/salt/modules/guestfs.py/__virtual__