Revision f551841a kamaki/cli/commands/image_cli.py
b/kamaki/cli/commands/image_cli.py | ||
---|---|---|
263 | 263 |
for img in images: |
264 | 264 |
iname = img.pop('name') |
265 | 265 |
iid = img.pop('id') |
266 |
print('%s (%s)' % (bold(iname), bold(unicode(iid))))
|
|
266 |
print('%s (%s)' % (unicode(iid), bold(iname)))
|
|
267 | 267 |
if self.get_argument('detail'): |
268 |
image_info._print(img) |
|
268 |
if 'metadata' in img: |
|
269 |
img['metadata'] = img['metadata']['values'] |
|
270 |
print_dict(img, ident=2) |
|
271 |
print(' ') |
|
269 | 272 |
|
270 | 273 |
def main(self): |
271 | 274 |
super(self.__class__, self).main() |
... | ... | |
284 | 287 |
def _print(self, image): |
285 | 288 |
if 'metadata' in image: |
286 | 289 |
image['metadata'] = image['metadata']['values'] |
287 |
print_dict(image, ident=14)
|
|
290 |
print_dict(image) |
|
288 | 291 |
|
289 | 292 |
def main(self, image_id): |
290 | 293 |
super(self.__class__, self).main() |
Also available in: Unified diff