Fix disk deleting logic for permanently deleting from recycle bin
This commit is contained in:
1 parent
7e7a4898ec
commit
35fe2bdf0e
2 files changed
+13
-2
No files matched your search
@@ -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