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"]: if "group" in node and node["group"]:
return node["group"] return node["group"]
if node.get("exploited"): if node.get("propagated"):
node_type = "exploited"
elif node.get("propagated"):
node_type = "propagated" node_type = "propagated"
else: else:
node_type = "clean" node_type = "clean"

View File

@ -9,8 +9,6 @@ class NodeStates(Enum):
CLEAN_UNKNOWN = "clean_unknown" CLEAN_UNKNOWN = "clean_unknown"
CLEAN_LINUX = "clean_linux" CLEAN_LINUX = "clean_linux"
CLEAN_WINDOWS = "clean_windows" CLEAN_WINDOWS = "clean_windows"
EXPLOITED_LINUX = "exploited_linux"
EXPLOITED_WINDOWS = "exploited_windows"
PROPAGATED_LINUX = "propagated_linux" PROPAGATED_LINUX = "propagated_linux"
PROPAGATED_WINDOWS = "propagated_windows" PROPAGATED_WINDOWS = "propagated_windows"
ISLAND = "island" ISLAND = "island"