From 4c122dca77e619e8f9490bf612a30b3e77f75c82 Mon Sep 17 00:00:00 2001 From: amcrn Date: Fri, 12 Sep 2014 16:05:16 -0700 Subject: [PATCH] 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 --- troveclient/v1/shell.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/troveclient/v1/shell.py b/troveclient/v1/shell.py index a6155191..a3fc5bf0 100644 --- a/troveclient/v1/shell.py +++ b/troveclient/v1/shell.py @@ -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='', 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',