def __virtual__():
    if salt.utils.which('nft'):
        return 'nftables'
    return (False, 'The nftables execution module failed to load: nftables is not installed.')
Only load the module if nftables is installed
dataset/ETHPy150Open saltstack/salt/salt/modules/nftables.py/__virtual__