Added aws_instance_id field to monkey model

This commit is contained in:
Shay Nehmad 2019-09-04 12:05:46 +03:00
parent 7f543d675d
commit 8484925a64
1 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,8 @@ class Monkey(Document):
ttl_ref = ReferenceField(MonkeyTtl)
tunnel = ReferenceField("self")
command_control_channel = EmbeddedDocumentField(CommandControlChannel)
aws_instance_id = StringField(required=False) # This field only exists when the monkey is running on an AWS
# instance. See https://github.com/guardicore/monkey/issues/426.
# LOGIC
@staticmethod