From f591f150fcee3ecbc2ba34d410d4ddf7ab8b708e Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 21 Sep 2022 20:43:09 -0400 Subject: [PATCH] Revert "Island: Fix mypy issues in exploit.py" This reverts commit 9c49cdafa36a899d575b86fe6e21b801a24a49af. --- .../cc/services/telemetry/processing/exploit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monkey/monkey_island/cc/services/telemetry/processing/exploit.py b/monkey/monkey_island/cc/services/telemetry/processing/exploit.py index 214f64b56..b7b362a51 100644 --- a/monkey/monkey_island/cc/services/telemetry/processing/exploit.py +++ b/monkey/monkey_island/cc/services/telemetry/processing/exploit.py @@ -1,6 +1,6 @@ import copy -from dateutil import parser as dateutil_parser +import dateutil from monkey_island.cc.models import Monkey from monkey_island.cc.server_utils.encryption import get_datastore_encryptor @@ -29,10 +29,10 @@ def process_exploit_telemetry(telemetry_json, _): def update_network_with_exploit(edge: EdgeService, telemetry_json): - telemetry_json["data"]["info"]["started"] = dateutil_parser.parse( + telemetry_json["data"]["info"]["started"] = dateutil.parser.parse( telemetry_json["data"]["info"]["started"] ) - telemetry_json["data"]["info"]["finished"] = dateutil_parser.parse( + telemetry_json["data"]["info"]["finished"] = dateutil.parser.parse( telemetry_json["data"]["info"]["finished"] ) new_exploit = copy.deepcopy(telemetry_json["data"])