mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Fix the logic ordering of pv_absent
This commit is contained in:
parent
4c154fb55b
commit
f1ec37d328
@ -90,7 +90,7 @@ def pv_absent(name):
|
||||
else:
|
||||
changes = __salt__['lvm.pvremove'](name)
|
||||
|
||||
if not __salt__['lvm.pvdisplay'](name):
|
||||
if __salt__['lvm.pvdisplay'](name):
|
||||
ret['comment'] = 'Failed to remove Physical Volume {0}'.format(name)
|
||||
ret['result'] = False
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user