Skip to content

Commit

Permalink
Easier to read console output
Browse files Browse the repository at this point in the history
The console output was hard to read because it was displayed on one
line as a string as part of a tuple. Split them up so it's readable.

Change-Id: Ieb59909802a587027c4691924e70923c61476591
  • Loading branch information
Brant Knudson committed Sep 25, 2014
1 parent 0bb58ff commit 566c571
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tempest/scenario/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,10 @@ def _log_console_output(self, servers=None):
_, servers = self.servers_client.list_servers()
servers = servers['servers']
for server in servers:
LOG.debug('Console output for %s', server['id'])
LOG.debug(self.servers_client.get_console_output(server['id'],
length=None))
console_output = self.servers_client.get_console_output(
server['id'], length=None)
LOG.debug('Console output for %s\nhead=%s\nbody=\n%s',
server['id'], console_output[0], console_output[1])

def create_server_snapshot(self, server, name=None):
# Glance client
Expand Down

0 comments on commit 566c571

Please sign in to comment.