From a3eb0bc6f271562a91361c68902e686d7e7d0506 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Wed, 9 Mar 2022 17:04:07 +0530 Subject: [PATCH] Island: Remove unused `set_node_group()` in NodeService --- monkey/monkey_island/cc/services/node.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/monkey/monkey_island/cc/services/node.py b/monkey/monkey_island/cc/services/node.py index a1708e270..fe0c9489a 100644 --- a/monkey/monkey_island/cc/services/node.py +++ b/monkey/monkey_island/cc/services/node.py @@ -172,10 +172,6 @@ class NodeService: "os": NodeService.get_node_os(node), } - @staticmethod - def set_node_group(node_id: str, node_group: NodeStates): - mongo.db.node.update({"_id": node_id}, {"$set": {"group": node_group.value}}, upsert=False) - @staticmethod def unset_all_monkey_tunnels(monkey_id): mongo.db.monkey.update({"_id": monkey_id}, {"$unset": {"tunnel": ""}}, upsert=False)