From 27495e01e50e44418d413485daf8a1ce9f1900aa Mon Sep 17 00:00:00 2001 From: Mervyn Russell Date: Fri, 26 Aug 2016 13:43:17 +0100 Subject: [PATCH] Added support for creation date to Ami --- moto/ec2/models.py | 1 + moto/ec2/responses/amis.py | 1 + 2 files changed, 2 insertions(+) mode change 100644 => 100755 moto/ec2/models.py mode change 100644 => 100755 moto/ec2/responses/amis.py diff --git a/moto/ec2/models.py b/moto/ec2/models.py old mode 100644 new mode 100755 index 20ad64fa9..e65d7fd44 --- a/moto/ec2/models.py +++ b/moto/ec2/models.py @@ -911,6 +911,7 @@ class Ami(TaggedEC2Resource): self.architecture = None self.kernel_id = None self.platform = None + self.creation_date = datetime.utcnow().isoformat() if instance: self.instance = instance diff --git a/moto/ec2/responses/amis.py b/moto/ec2/responses/amis.py old mode 100644 new mode 100755 index aecf55292..42649fd38 --- a/moto/ec2/responses/amis.py +++ b/moto/ec2/responses/amis.py @@ -90,6 +90,7 @@ DESCRIBE_IMAGES_RESPONSE = """