mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +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:
|
else:
|
||||||
changes = __salt__['lvm.pvremove'](name)
|
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['comment'] = 'Failed to remove Physical Volume {0}'.format(name)
|
||||||
ret['result'] = False
|
ret['result'] = False
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user