Skip ZFS module check on OpenBSD

Avoids the following error when running `salt-call` on OpenBSD:

[ERROR   ] Command '/usr/sbin/rcctl get zfs-fuse' failed with return code: 2
[ERROR   ] output: rcctl: service zfs-fuse does not exist
This commit is contained in:
Eric Radman 2017-09-25 16:47:20 -04:00
parent 81c0c138d7
commit c369e337e4

View File

@ -77,6 +77,9 @@ def __virtual__():
) == 0:
return 'zfs'
if __grains__['kernel'] == 'OpenBSD':
return False
_zfs_fuse = lambda f: __salt__['service.' + f]('zfs-fuse')
if _zfs_fuse('available') and (_zfs_fuse('status') or _zfs_fuse('start')):
return 'zfs'