From bf3d738762d060a777557141abe193e6c7db71ad Mon Sep 17 00:00:00 2001 From: zhangchi Date: Thu, 29 Nov 2018 15:12:18 +0800 Subject: [PATCH] Make Trio2o nova apigw get image infos more detail 1. What is the problem? right now trio2o apigw get image information not complete 2. What is the solution to the problem? perfect the information for trio2o nova apigw get image infos Change-Id: Ia41f3546aa751c3ee78528fb5707edd941fbe3f8 Signed-off-by: zhangchi Co-Authored-By: tangzhuo --- trio2o/nova_apigw/controllers/image.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/trio2o/nova_apigw/controllers/image.py b/trio2o/nova_apigw/controllers/image.py index 1cea02d..b72ea3b 100644 --- a/trio2o/nova_apigw/controllers/image.py +++ b/trio2o/nova_apigw/controllers/image.py @@ -102,6 +102,12 @@ class ImageController(rest.RestController): 'metadata': image.get('properties', {}), 'created': image.get('created_at'), 'updated': image.get('updated_at'), + 'container_format': image.get('container_format'), + 'disk_format': image.get('disk_format'), + 'protected': image.get('protected'), + 'size': int(image.get('size') or 0), + 'tags': image.get('tags', []), + 'visibility': image.get('visibility'), 'status': self._get_status(image), 'progress': self._get_progress(image), 'links': self._get_links(context, image)