From cb92ad7b60be762156d9768eb64bc9682368e5e2 Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Mon, 29 Apr 2019 16:09:16 +0300 Subject: [PATCH] Add creation_time attribute in ali_image_facts results --- lib/ansible/modules/cloud/alicloud/ali_image_facts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/modules/cloud/alicloud/ali_image_facts.py b/lib/ansible/modules/cloud/alicloud/ali_image_facts.py index 85337de9..40e1a577 100644 --- a/lib/ansible/modules/cloud/alicloud/ali_image_facts.py +++ b/lib/ansible/modules/cloud/alicloud/ali_image_facts.py @@ -107,6 +107,7 @@ sample: [ { "architecture": "x86_64", + "creation_time": "2019-03-27T09:47:10Z", "description": "", "disk_device_mappings": { "disk_device_mapping": [ @@ -143,6 +144,7 @@ }, { "architecture": "x86_64", + "creation_time": "2019-03-27T09:47:10Z", "description": "", "disk_device_mappings": { "disk_device_mapping": [ @@ -204,6 +206,7 @@ def get_info(image): """ return { 'architecture': image.architecture, + 'creation_time': image.creation_time, 'description': image.description, 'disk_device_mappings': image.disk_device_mappings, 'image_id': image.image_id,