[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>
pull/62477/head
Sam Doran 5 years ago 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:

Loading…
Cancel
Save