forked from p15670423/monkey
Remove unused `get_monkey_critical_services()` and `get_monkey_label_by_id()` in `monkey_island/cc/services/node.py`
This commit is contained in:
parent
9c629f964c
commit
e4c45153ea
|
@ -104,17 +104,6 @@ class NodeService:
|
||||||
|
|
||||||
return True
|
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
|
@staticmethod
|
||||||
def get_monkey_label(monkey):
|
def get_monkey_label(monkey):
|
||||||
# todo
|
# todo
|
||||||
|
|
Loading…
Reference in New Issue