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
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user