summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Shnaidman <sshnaidm@cisco.com>2014-09-30 18:31:43 +0400
committerSergey Shnaidman <sshnaidm@cisco.com>2014-09-30 19:25:16 +0400
commit5e9c8fdfd1db85d11dd56f89b164192b7c1050d6 (patch)
tree43a6f31b1ad587e158b5e4c6a3318a1f8a83ef5c
parentcafc3ad763ed5a524258b4e5be2ffa3d1a8219d5 (diff)
downloadtempest-5e9c8fdfd1db85d11dd56f89b164192b7c1050d6.tar.gz
Fix finding router for scenario tests
Finding router return tuple resp,body and body only contains router details. Closes-Bug: 1375859 Change-Id: Ic405d20991561e8773153d829750826a82ed751c
-rw-r--r--tempest/scenario/manager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tempest/scenario/manager.py b/tempest/scenario/manager.py
index 99336461e..5c18ddfb5 100644
--- a/tempest/scenario/manager.py
+++ b/tempest/scenario/manager.py
@@ -934,8 +934,8 @@ class NetworkScenarioTest(ScenarioTest):
router_id = CONF.network.public_router_id
network_id = CONF.network.public_network_id
if router_id:
- result = client.show_router(router_id)
- return net_resources.AttributeDict(**result['router'])
+ resp, body = client.show_router(router_id)
+ return net_resources.AttributeDict(**body['router'])
elif network_id:
router = self._create_router(client, tenant_id)
router.set_gateway(network_id)