Island: Remove unused `set_node_group()` in NodeService

This commit is contained in:
Shreya Malviya 2022-03-09 17:04:07 +05:30 committed by Mike Salvatore
parent 5e3829aab3
commit a3eb0bc6f2
1 changed files with 0 additions and 4 deletions

View File

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