[stable-2.9] Remove leading space in warning messages (#62002)
ci_complete
(cherry picked from commit ea6e96985a)
Co-authored-by: Sam Doran <sdoran@redhat.com>
This commit is contained in:
committed by
Toshio Kuratomi
parent
0d79d993f7
commit
5d4bcea149
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- display - remove leading space when displaying WARNING messages
|
||||
@ -248,7 +248,7 @@ class Display(with_metaclass(Singleton, object)):
|
||||
def warning(self, msg, formatted=False):
|
||||
|
||||
if not formatted:
|
||||
new_msg = "\n[WARNING]: %s" % msg
|
||||
new_msg = "[WARNING]: %s" % msg
|
||||
wrapped = textwrap.wrap(new_msg, self.columns)
|
||||
new_msg = "\n".join(wrapped) + "\n"
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user