def exists(zpool):
    zpool_cmd = _check_zpool()
    cmd = '{zpool_cmd} list {zpool}'.format(
        zpool_cmd=zpool_cmd,
        zpool=zpool
    )
    res = __salt__['cmd.run_all'](cmd, python_shell=False)
    if res['retcode'] != 0:
        return False
    return True
Check if a ZFS storage pool is active
dataset/ETHPy150Open saltstack/salt/salt/modules/zpool.py/exists