Fix disk deleting logic for permanently deleting from recycle bin

This commit is contained in:
dyusmirnov committed 2024-05-23 16:41:45 +03:00
1 parent 7e7a4898ec
commit 35fe2bdf0e
2 files changed
+13 -2

No files matched your search

+3
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: