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 <zhangchi@szzt.com.cn>
Co-Authored-By: tangzhuo <ztang@hnu.edu.cn>
This commit is contained in:
zhangchi 2018-11-29 15:12:18 +08:00 committed by chzhang8
parent 87993cd26a
commit bf3d738762
1 changed files with 6 additions and 0 deletions

View File

@ -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)