Fix the logic ordering of pv_absent

This commit is contained in:
Daniel Wallace 2014-05-11 23:35:14 -05:00
parent 4c154fb55b
commit f1ec37d328

View File

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