Island: remove unused node states

Exploited node state is no longer used, returning it in the list caused errors on the ui
This commit is contained in:
vakaris_zilius 2022-03-09 15:55:38 +00:00
parent a8018a7956
commit 2c8aef6d80
2 changed files with 1 additions and 5 deletions

View File

@ -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"

View File

@ -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"