diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ad66f126..ac9093b9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ Changelog](https://keepachangelog.com/en/1.0.0/). - Checkbox for self deleting a monkey agent on cleanup. #1537 - Checkbox for file logging. #1537 - Remove serialization of config. #1537 +- Checkbox that gave the option to not try to first move the dropper file. #1537 ### Fixed - A bug in network map page that caused delay of telemetry log loading. #1545 diff --git a/monkey/infection_monkey/dropper.py b/monkey/infection_monkey/dropper.py index 6919acc8e..f74767cef 100644 --- a/monkey/infection_monkey/dropper.py +++ b/monkey/infection_monkey/dropper.py @@ -187,8 +187,9 @@ class MonkeyDrops(object): logger.info("Cleaning up the dropper") try: - if self._config["source_path"].lower() != self._config["destination_path"].lower() \ - and os.path.exists(self._config["source_path"]): + if self._config["source_path"].lower() != self._config[ + "destination_path" + ].lower() and os.path.exists(self._config["source_path"]): # try removing the file first try: