We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 255fe68 + 9a17356 commit 3f99dbaCopy full SHA for 3f99dba
1 file changed
openstackclient/compute/v2/console.py
@@ -15,8 +15,6 @@
15
16
"""Compute v2 Console action implementations"""
17
18
-import sys
19
-
20
from osc_lib.cli import parseractions
21
from osc_lib.command import command
22
from osc_lib import utils
@@ -60,7 +58,10 @@ def take_action(self, parsed_args):
60
58
length += 1
61
59
62
data = server.get_console_output(length=length)
63
- sys.stdout.write(data)
+
+ if data and data[-1] != '\n':
+ data += '\n'
64
+ self.app.stdout.write(data)
65
66
67
class ShowConsoleURL(command.ShowOne):
0 commit comments