Merge "Fix datastore abnormal display with trove backup-show"
This commit is contained in:
@@ -143,6 +143,12 @@ def _print_object(obj):
|
|||||||
obj._info['id'] = obj.id
|
obj._info['id'] = obj.id
|
||||||
del(obj._info['str_id'])
|
del(obj._info['str_id'])
|
||||||
|
|
||||||
|
# Get datastore type and version, where necessary
|
||||||
|
if hasattr(obj, 'datastore'):
|
||||||
|
if 'type' in obj.datastore:
|
||||||
|
obj._info['datastore'] = obj.datastore['type']
|
||||||
|
obj._info['datastore_version'] = obj.datastore['version']
|
||||||
|
|
||||||
utils.print_dict(obj._info)
|
utils.print_dict(obj._info)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user