From c8e6ed20dbb24a3df6c381e61c35576e07bfb838 Mon Sep 17 00:00:00 2001 From: Vipul Sabhaya Date: Wed, 14 Nov 2012 14:10:46 -0800 Subject: [PATCH] Handle action responses that contain a response body bug 1074092 Change-Id: I31505743f54010cf5e18bffaf839751a4a29d4e6 --- reddwarfclient/instances.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reddwarfclient/instances.py b/reddwarfclient/instances.py index 4d633c32..cf8fe800 100644 --- a/reddwarfclient/instances.py +++ b/reddwarfclient/instances.py @@ -122,6 +122,8 @@ class Instances(base.ManagerWithFind): url = "/instances/%s/action" % instance_id resp, body = self.api.client.post(url, body=body) check_for_exceptions(resp, body) + if body: + return self.resource_class(self, body, loaded=True) return body def resize_volume(self, instance_id, volume_size):