Fix networks abnormal display with trove show
According bug description, the networks display abnormal when use trove show. The cause of the problem is method _print_instance unformatted networks from result. Change-Id: I30e27b731f67ab7c31e30af8ab9bb3e499e27dfa Closes-Bug: #1734710
This commit is contained in:
parent
a05be72736
commit
fe1c727551
@ -103,6 +103,9 @@ def _print_instance(instance):
|
||||
if hasattr(instance, 'replicas'):
|
||||
replicas = [replica['id'] for replica in instance.replicas]
|
||||
info['replicas'] = ', '.join(replicas)
|
||||
if hasattr(instance, 'networks'):
|
||||
info['networks'] = instance.networks['name']
|
||||
info['networks_id'] = instance.networks['id']
|
||||
if hasattr(instance, 'fault'):
|
||||
info.pop('fault', None)
|
||||
info['fault'] = instance.fault['message']
|
||||
|
Loading…
Reference in New Issue
Block a user