From 4ee8b650c8c7c738d630819b4196e3881a5848b3 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Tue, 2 Apr 2019 14:54:20 +0300 Subject: [PATCH] Removed redundant code in VictimHostTelem --- .../transport/attack_telems/victim_host_telem.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/monkey/infection_monkey/transport/attack_telems/victim_host_telem.py b/monkey/infection_monkey/transport/attack_telems/victim_host_telem.py index 0782c2dfd..ecab5a648 100644 --- a/monkey/infection_monkey/transport/attack_telems/victim_host_telem.py +++ b/monkey/infection_monkey/transport/attack_telems/victim_host_telem.py @@ -15,7 +15,4 @@ class VictimHostTelem(AttackTelem): """ super(VictimHostTelem, self).__init__(technique, status, data) victim_host = {'hostname': machine.domain_name, 'ip': machine.ip_addr} - if data: - self.data.update(data) - if machine: - self.data.update({'machine': victim_host}) + self.data.update({'machine': victim_host})