Handle action responses that contain a response body

bug 1074092

Change-Id: I31505743f54010cf5e18bffaf839751a4a29d4e6
This commit is contained in:
Vipul Sabhaya
2012-11-14 14:10:46 -08:00
parent 52389f90f2
commit c8e6ed20db

View File

@@ -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):