mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
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:
parent
81c0c138d7
commit
c369e337e4
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user