From 476c6e7a4b69552c4a612aed7f3be6319b680866 Mon Sep 17 00:00:00 2001 From: Shay Nehmad Date: Mon, 20 Jan 2020 16:43:25 +0200 Subject: [PATCH] Deleted hostname old collection, moved to collector --- monkey/infection_monkey/system_info/__init__.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/monkey/infection_monkey/system_info/__init__.py b/monkey/infection_monkey/system_info/__init__.py index fc4aa1caf..66056828e 100644 --- a/monkey/infection_monkey/system_info/__init__.py +++ b/monkey/infection_monkey/system_info/__init__.py @@ -62,7 +62,6 @@ class InfoCollector(object): def get_info(self): # Collect all hardcoded - self.get_hostname() self.get_process_list() self.get_network_info() self.get_azure_info() @@ -70,14 +69,6 @@ class InfoCollector(object): # Collect all plugins SystemInfoCollectorsHandler().execute_all_configured() - def get_hostname(self): - """ - Adds the fully qualified computer hostname to the system information. - :return: None. Updates class information - """ - LOG.debug("Reading hostname") - self.info['hostname'] = socket.getfqdn() - def get_process_list(self): """ Adds process information from the host to the system information.