Fix omission of request_ids returned to user

The subclass of ManagerWithFind implements get() function, and all
the get() functions returns an object with request_ids. Let's expose
these request_ids to users directly.

Change-Id: Icb3c480c637c39412ed085f4523fb93e36fea0a7
Closes-Bug: 1541694
This commit is contained in:
Cao Shufeng 2016-02-05 16:19:03 +08:00 committed by Cao ShuFeng
parent 0927de6c8e
commit ba39fd3caa
1 changed files with 3 additions and 1 deletions

View File

@ -459,7 +459,9 @@ class ManagerWithFind(Manager):
if detailed:
found.append(obj)
else:
found.append(self.get(obj.id))
detail = self.get(obj.id)
found.append(detail)
found.append_request_ids(detail.request_ids)
except AttributeError:
continue