Fix logic of LB deleting from Recycle Bin and LB list getting
This commit is contained in:
@@ -322,7 +322,8 @@ def main():
|
||||
elif decon.lb_facts['status'] == "DELETED":
|
||||
if amodule.params['state'] in ['present', 'enabled']:
|
||||
decon.action(restore=True)
|
||||
elif amodule.params['state'] == 'absent':
|
||||
elif (amodule.params['state'] == 'absent' and
|
||||
amodule.params['permanently']):
|
||||
decon.delete()
|
||||
elif amodule.params['state'] == 'disabled':
|
||||
decon.error()
|
||||
|
||||
Reference in New Issue
Block a user