Merge pull request #427 from guardicore/426/bugfix-load-monkey-model-aws

Added aws_instance_id field to monkey model
This commit is contained in:
Shay Nehmad 2019-09-04 12:18:17 +03:00 committed by GitHub
commit f8fe0b9f09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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