From 2c8aef6d8019c1b5c85545cacef125741d45ed8e Mon Sep 17 00:00:00 2001 From: vakaris_zilius Date: Wed, 9 Mar 2022 15:55:38 +0000 Subject: [PATCH] Island: remove unused node states Exploited node state is no longer used, returning it in the list caused errors on the ui --- monkey/monkey_island/cc/services/node.py | 4 +--- monkey/monkey_island/cc/services/utils/node_states.py | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/monkey/monkey_island/cc/services/node.py b/monkey/monkey_island/cc/services/node.py index fe0c9489a..a006d9d7f 100644 --- a/monkey/monkey_island/cc/services/node.py +++ b/monkey/monkey_island/cc/services/node.py @@ -129,9 +129,7 @@ class NodeService: if "group" in node and node["group"]: return node["group"] - if node.get("exploited"): - node_type = "exploited" - elif node.get("propagated"): + if node.get("propagated"): node_type = "propagated" else: node_type = "clean" diff --git a/monkey/monkey_island/cc/services/utils/node_states.py b/monkey/monkey_island/cc/services/utils/node_states.py index 476255de4..cb8024bd2 100644 --- a/monkey/monkey_island/cc/services/utils/node_states.py +++ b/monkey/monkey_island/cc/services/utils/node_states.py @@ -9,8 +9,6 @@ class NodeStates(Enum): CLEAN_UNKNOWN = "clean_unknown" CLEAN_LINUX = "clean_linux" CLEAN_WINDOWS = "clean_windows" - EXPLOITED_LINUX = "exploited_linux" - EXPLOITED_WINDOWS = "exploited_windows" PROPAGATED_LINUX = "propagated_linux" PROPAGATED_WINDOWS = "propagated_windows" ISLAND = "island"