From ba39fd3caad7e62cbc27e98e9dc4de7b90ca4534 Mon Sep 17 00:00:00 2001 From: Cao Shufeng Date: Fri, 5 Feb 2016 16:19:03 +0800 Subject: [PATCH] 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 --- novaclient/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/novaclient/base.py b/novaclient/base.py index caaea4ec7..154c20155 100644 --- a/novaclient/base.py +++ b/novaclient/base.py @@ -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