summaryrefslogtreecommitdiff
path: root/novaclient/v2/shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'novaclient/v2/shell.py')
-rw-r--r--novaclient/v2/shell.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/novaclient/v2/shell.py b/novaclient/v2/shell.py
index 81ab53ca..a0a99d76 100644
--- a/novaclient/v2/shell.py
+++ b/novaclient/v2/shell.py
@@ -19,7 +19,6 @@
from __future__ import print_function
import argparse
-import codecs
import collections
import datetime
import getpass
@@ -2675,10 +2674,7 @@ def do_console_log(cs, args):
"""Get console log output of a server."""
server = _find_server(cs, args.server)
data = server.get_console_output(length=args.length)
-
- if data and data[-1] != '\n':
- data += '\n'
- codecs.getwriter('utf-8')(sys.stdout).write(data)
+ print(data)
@utils.arg('server', metavar='<server>', help=_('Name or ID of server.'))