Fix logging of console output in scenario tests
In patch [1] there was added logging of VM's console output if
connectivity will fail.
But in some cases wrong dict was passed to check_remote_connectivity()
method and that caused failure on logging console output.
This patch fixes this issue.
[1] https://review.opendev.org/#/c/697980/
Change-Id: I60c30bd33f3b76873268a5e2e7e1960357c65720
diff --git a/neutron_tempest_plugin/scenario/base.py b/neutron_tempest_plugin/scenario/base.py
index 7b66494..fa91b31 100644
--- a/neutron_tempest_plugin/scenario/base.py
+++ b/neutron_tempest_plugin/scenario/base.py
@@ -273,6 +273,11 @@
servers = self.os_primary.servers_client.list_servers()
servers = servers['servers']
for server in servers:
+ # NOTE(slaweq): sometimes servers are passed in dictionary with
+ # "server" key as first level key and in other cases it may be that
+ # it is just the "inner" dict without "server" key. Lets try to
+ # handle both cases
+ server = server.get("server") or server
try:
console_output = (
self.os_primary.servers_client.get_console_output(