From 90a063c47cf2cdcbe75a0e6322d1874e0bca55c4 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Tue, 16 Nov 2021 11:57:46 +0200 Subject: [PATCH] Island: remove environment property from monkey model because it's unused --- monkey/monkey_island/cc/models/monkey.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/monkey/monkey_island/cc/models/monkey.py b/monkey/monkey_island/cc/models/monkey.py index 4bfaa1759..a6d5b2138 100644 --- a/monkey/monkey_island/cc/models/monkey.py +++ b/monkey/monkey_island/cc/models/monkey.py @@ -55,14 +55,8 @@ class Monkey(Document): tunnel = ReferenceField("self") command_control_channel = EmbeddedDocumentField(CommandControlChannel) - # Environment related fields - environment = StringField( - default=environment_names.Environment.UNKNOWN.value, - choices=environment_names.ALL_ENVIRONMENTS_NAMES, - ) - aws_instance_id = StringField( - required=False - ) # This field only exists when the monkey is running on an AWS + # This field only exists when the monkey is running on an AWS + aws_instance_id = StringField(required=False) # instance. See https://github.com/guardicore/monkey/issues/426.