Fix disk deleting logic for permanently deleting from recycle bin
This commit is contained in:
@@ -520,6 +520,9 @@ def main():
|
||||
elif decon.disk_info['status'] == "DELETED":
|
||||
if amodule.params['state'] in ('present'):
|
||||
decon.action(restore=True)
|
||||
elif (amodule.params['state'] == 'absent' and
|
||||
amodule.params['permanently']):
|
||||
decon.delete()
|
||||
else:
|
||||
decon.nop()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user