CC-2558 : Delete all files from disk, only allow admins to delete.
This commit is contained in:
parent
28b71c61d6
commit
ba0458c442
3 changed files with 4 additions and 1 deletions
|
@ -112,7 +112,7 @@ class AirtimeNotifier(Notifier):
|
|||
self.logger.info("Adding file to ignore: %s ", filepath)
|
||||
mm.add_filepath_to_ignore(filepath)
|
||||
|
||||
if m['delete'] == "true":
|
||||
if m['delete']:
|
||||
self.logger.info("Deleting file: %s ", filepath)
|
||||
os.unlink(filepath)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue