mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Merge pull request #47078 from sjorge/zfsgrainnopool
Ignore return code in zfs grains
This commit is contained in:
commit
ab8b12379b
@ -60,7 +60,7 @@ def _zfs_pool_data():
|
|||||||
flags=['-H'],
|
flags=['-H'],
|
||||||
opts={'-o': 'name,size'},
|
opts={'-o': 'name,size'},
|
||||||
)
|
)
|
||||||
for zpool in __salt__['cmd.run'](zpool_list_cmd).splitlines():
|
for zpool in __salt__['cmd.run'](zpool_list_cmd, ignore_retcode=True).splitlines():
|
||||||
if 'zpool' not in grains:
|
if 'zpool' not in grains:
|
||||||
grains['zpool'] = {}
|
grains['zpool'] = {}
|
||||||
zpool = zpool.split()
|
zpool = zpool.split()
|
||||||
|
Loading…
Reference in New Issue
Block a user