Fix disk deleting logic for permanently deleting from recycle bin

This commit is contained in:
2024-05-23 16:41:45 +03:00
parent 7e7a4898ec
commit 35fe2bdf0e
2 changed files with 13 additions and 2 deletions

View File

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