From dc21242144fdf520d065e2648c6f6d56b06fcee2 Mon Sep 17 00:00:00 2001 From: Sushil Kumar Date: Wed, 22 Oct 2014 07:10:34 +0000 Subject: [PATCH] Fixes trove show output Reasons: - trove show gives different output for id and names as input, as explained in bug, with name it shows less information. Changes: - Returns the object found by id after finding the matching object from the list of obtained instances, which results in getting same attributes for output irrespective whichever way the command is used. Change-Id: Ib397d5791e9a6f10c10c2ab3160401c1c7cfa214 Closes-Bug: #1384055 --- troveclient/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/troveclient/base.py b/troveclient/base.py index f0abc37c..65a2c6ae 100644 --- a/troveclient/base.py +++ b/troveclient/base.py @@ -231,7 +231,7 @@ class ManagerWithFind(six.with_metaclass(abc.ABCMeta, Manager)): try: if all(getattr(obj, attr) == value for (attr, value) in searches): - found.append(obj) + found.append(self.get(obj.id)) except AttributeError: continue