fix mistake in destroy

This commit is contained in:
Jorge Schrauwen 2015-12-20 16:33:31 +00:00
parent 56c72bae29
commit 161245e385

View File

@ -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