Merge "Full response for VolumeHostsClient methods"

This commit is contained in:
Jenkins
2015-08-20 14:25:08 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ class VolumeHostsAdminV2TestsJSON(base.BaseVolumeAdminTest):
@test.idempotent_id('d5f3efa2-6684-4190-9ced-1c2f526352ad')
def test_list_hosts(self):
hosts = self.hosts_client.list_hosts()
hosts = self.hosts_client.list_hosts()['hosts']
self.assertTrue(len(hosts) >= 2, "No. of hosts are < 2,"
"response of list hosts is: % s" % hosts)

View File

@@ -34,7 +34,7 @@ class BaseVolumeHostsClient(service_client.ServiceClient):
resp, body = self.get(url)
body = json.loads(body)
self.expected_success(200, resp.status)
return service_client.ResponseBodyList(resp, body['hosts'])
return service_client.ResponseBody(resp, body)
class VolumeHostsClient(BaseVolumeHostsClient):