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"]:
|
||||
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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue