javelin: add missing network_name in destroy_servers loop
When looping on server addresses, res['addresses'], we need to split the
network_name and the body so we can iterate in the body directly.
In a previous commit, we iterated in network_name which is wrong because
it leads to this error: TypeError: string indices must be integers.
Change-Id: If062888d7f178ab08d0277d24d35c47821b2c49e
Closes-bug: #1432091
diff --git a/tempest/cmd/javelin.py b/tempest/cmd/javelin.py
index 8f238a5..ab23dea 100755
--- a/tempest/cmd/javelin.py
+++ b/tempest/cmd/javelin.py
@@ -882,7 +882,7 @@
if (CONF.service_available.neutron and
not CONF.baremetal.driver_enabled and
CONF.compute.use_floatingip_for_ssh):
- for body in res['addresses'].items():
+ for network_name, body in res['addresses'].items():
for addr in body:
ip = addr['addr']
if addr.get('OS-EXT-IPS:type',