Datastore on Show Instance Should Not Be a Dict
From:
+-----------+-----------------------------------------------+
| Property | Value |
+-----------+-----------------------------------------------+
| created | 2014-01-12T22:17:16 |
| datastore | {u'version': u'mysql-5.5', u'type': u'mysql'} |
To:
$ trove show 160e571f-afae-4ac8-aec0-7b2e55846e07
+-------------------+--------------------------------------+
| Property | Value |
+-------------------+--------------------------------------+
| created | 2014-01-12T22:17:16 |
| datastore | mysql |
| datastore_version | mysql-5.5 |
Change-Id: I1542869760ab0010a2ada4ed16a0b526dc233220
Closes-Bug: #1254141
This commit is contained in:
@@ -119,6 +119,9 @@ def do_show(cs, args):
|
||||
instance._info['volume'] = instance.volume['size']
|
||||
if hasattr(instance, 'ip'):
|
||||
instance._info['ip'] = ', '.join(instance.ip)
|
||||
if hasattr(instance, 'datastore'):
|
||||
instance._info['datastore'] = instance.datastore['type']
|
||||
instance._info['datastore_version'] = instance.datastore['version']
|
||||
_print_instance(instance)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user