mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
fix mistake in destroy
This commit is contained in:
parent
56c72bae29
commit
161245e385
@ -429,8 +429,8 @@ def destroy(zpool):
|
||||
zpool=zpool
|
||||
)
|
||||
res = __salt__['cmd.run_all'](cmd, python_shell=False)
|
||||
if not exists(zpool):
|
||||
if 'stderr' in res:
|
||||
if exists(zpool):
|
||||
if 'stderr' in res and res['stderr'] != '':
|
||||
ret['Error'] = res['stderr']
|
||||
else:
|
||||
ret = False
|
||||
|
Loading…
Reference in New Issue
Block a user