diff options
| author | Sushil Kumar <skm.net@gmail.com> | 2014-10-22 07:10:34 +0000 |
|---|---|---|
| committer | Sushil Kumar <skm.net@gmail.com> | 2014-10-22 07:43:32 +0000 |
| commit | dc21242144fdf520d065e2648c6f6d56b06fcee2 (patch) | |
| tree | 3327628e51ea64101a6f0c515c07dcd6cfc80cd1 /troveclient/base.py | |
| parent | d596428b413764a14672409875efb9a130261e90 (diff) | |
| download | python-troveclient-dc21242144fdf520d065e2648c6f6d56b06fcee2.tar.gz | |
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
Diffstat (limited to 'troveclient/base.py')
| -rw-r--r-- | troveclient/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/troveclient/base.py b/troveclient/base.py index f0abc37..65a2c6a 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 |
