Added support for creation date to Ami
This commit is contained in:
parent
e92a8b7492
commit
27495e01e5
1
moto/ec2/models.py
Normal file → Executable file
1
moto/ec2/models.py
Normal file → Executable file
@ -911,6 +911,7 @@ class Ami(TaggedEC2Resource):
|
|||||||
self.architecture = None
|
self.architecture = None
|
||||||
self.kernel_id = None
|
self.kernel_id = None
|
||||||
self.platform = None
|
self.platform = None
|
||||||
|
self.creation_date = datetime.utcnow().isoformat()
|
||||||
|
|
||||||
if instance:
|
if instance:
|
||||||
self.instance = instance
|
self.instance = instance
|
||||||
|
1
moto/ec2/responses/amis.py
Normal file → Executable file
1
moto/ec2/responses/amis.py
Normal file → Executable file
@ -90,6 +90,7 @@ DESCRIBE_IMAGES_RESPONSE = """<DescribeImagesResponse xmlns="http://ec2.amazonaw
|
|||||||
<kernelId>{{ image.kernel_id }}</kernelId>
|
<kernelId>{{ image.kernel_id }}</kernelId>
|
||||||
<ramdiskId>ari-1a2b3c4d</ramdiskId>
|
<ramdiskId>ari-1a2b3c4d</ramdiskId>
|
||||||
<imageOwnerAlias>amazon</imageOwnerAlias>
|
<imageOwnerAlias>amazon</imageOwnerAlias>
|
||||||
|
<creationDate>{{ image.creation_date }}</creationDate>
|
||||||
<name>{{ image.name }}</name>
|
<name>{{ image.name }}</name>
|
||||||
{% if image.platform %}
|
{% if image.platform %}
|
||||||
<platform>{{ image.platform }}</platform>
|
<platform>{{ image.platform }}</platform>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user