Fix run_tempest function
Node_name is specified incorrectly because parameter 'target_name'
isn't a list.
Change-Id: I427c6ac23c19ed3368973c037924d016356122c6
diff --git a/tcp_tests/managers/openstack_manager.py b/tcp_tests/managers/openstack_manager.py
index feb270b..464dc56 100644
--- a/tcp_tests/managers/openstack_manager.py
+++ b/tcp_tests/managers/openstack_manager.py
@@ -143,9 +143,9 @@
"-v /etc/ssl/certs/:/etc/ssl/certs/ {2} >> image.output"
.format(conf_name, pattern, registry))
LOG.info("Running tempest testing on node {0} using the following "
- "command:\n{1}".format(target_name[0], cmd))
+ "command:\n{1}".format(target_name, cmd))
- with self.__underlay.remote(node_name=target_name[0]) as node_remote:
+ with self.__underlay.remote(node_name=target_name) as node_remote:
result = node_remote.execute(cmd, verbose=True)
LOG.debug("Test execution result is {}".format(result))
return result