Remove unused `get_monkey_critical_services()` and `get_monkey_label_by_id()` in `monkey_island/cc/services/node.py`

This commit is contained in:
Shreya 2021-05-04 13:27:43 +05:30
parent 9c629f964c
commit e4c45153ea
1 changed files with 0 additions and 11 deletions

View File

@ -104,17 +104,6 @@ class NodeService:
return True
@staticmethod
def get_monkey_label_by_id(monkey_id):
return NodeService.get_monkey_label(NodeService.get_monkey_by_id(monkey_id))
@staticmethod
def get_monkey_critical_services(monkey_id):
critical_services = mongo.db.monkey.find_one(
{"_id": monkey_id}, {"critical_services": 1}
).get("critical_services", [])
return critical_services
@staticmethod
def get_monkey_label(monkey):
# todo