mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
zfs: Fix spurious retcode hijacking in virtual
This commit is contained in:
parent
3d885c04f0
commit
0bf23ce701
1 changed files with 3 additions and 1 deletions
|
@ -90,7 +90,9 @@ def __virtual__():
|
|||
else:
|
||||
cmd = 'ls /sys/module/zfs'
|
||||
|
||||
if cmd and __salt__['cmd.retcode'](cmd, output_loglevel='quiet') == 0:
|
||||
if cmd and __salt__['cmd.retcode'](
|
||||
cmd, output_loglevel='quiet', ignore_retcode=True
|
||||
) == 0:
|
||||
# Build dynamic functions and allow loading module
|
||||
_build_zfs_cmd_list()
|
||||
return 'zfs'
|
||||
|
|
Loading…
Add table
Reference in a new issue