forked from p15670423/monkey
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:
parent
a8018a7956
commit
2c8aef6d80
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue