summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2017-12-01 05:01:39 +0000
committerGerrit Code Review <review@openstack.org>2017-12-01 05:01:39 +0000
commitdc48bc08359cdf0f1cccce02112218718979315e (patch)
tree10e233b3d6bb22c324fc75b9008e5d6ebad1ca88
parent8599a59fc342a915e65c3f15812bfaf862900017 (diff)
parentb7d40c2a52bc2e49123de30e56f7245f44cfed08 (diff)
Merge "Fix datastore abnormal display with trove backup-show"
-rw-r--r--troveclient/v1/shell.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/troveclient/v1/shell.py b/troveclient/v1/shell.py
index c9efed0..21ef93f 100644
--- a/troveclient/v1/shell.py
+++ b/troveclient/v1/shell.py
@@ -143,6 +143,12 @@ def _print_object(obj):
143 obj._info['id'] = obj.id 143 obj._info['id'] = obj.id
144 del(obj._info['str_id']) 144 del(obj._info['str_id'])
145 145
146 # Get datastore type and version, where necessary
147 if hasattr(obj, 'datastore'):
148 if 'type' in obj.datastore:
149 obj._info['datastore'] = obj.datastore['type']
150 obj._info['datastore_version'] = obj.datastore['version']
151
146 utils.print_dict(obj._info) 152 utils.print_dict(obj._info)
147 153
148 154