Fix Cluster-Create and Cluster-Show Response
the refactoring in Ie1ac42d61e920ac8ea1ebab35c2db096fd313077 broke the responses for the aforementioned commands, resulting in stacktraces. Change-Id: Idb6d5677cb854b9dc76ad621910277b687c111a1 Closes-Bug: #1368982
This commit is contained in:
parent
e010a91975
commit
4c122dca77
@ -204,7 +204,7 @@ def do_cluster_show(cs, args):
|
||||
info['ip'] = ', '.join(cluster.ip)
|
||||
del info['instances']
|
||||
cluster._info = info
|
||||
_print_instance(cluster)
|
||||
_print_object(cluster)
|
||||
|
||||
|
||||
@utils.arg('cluster', metavar='<cluster>', help='ID or name of the cluster.')
|
||||
@ -407,7 +407,7 @@ def do_cluster_create(cs, args):
|
||||
cluster._info['datastore'] = cluster.datastore['type']
|
||||
cluster._info['datastore_version'] = cluster.datastore['version']
|
||||
del cluster._info['instances']
|
||||
_print_instance(cluster)
|
||||
_print_object(cluster)
|
||||
|
||||
|
||||
@utils.arg('instance',
|
||||
|
Loading…
x
Reference in New Issue
Block a user