Use text strings when using display() to avoid UnicodeError tracebacks

This commit is contained in:
Toshio Kuratomi 2016-09-16 16:23:42 -07:00
parent a06da86d52
commit ce4c0fd644

View file

@ -789,7 +789,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
# be sure to remove the BECOME-SUCCESS message now # be sure to remove the BECOME-SUCCESS message now
out = self._strip_success_message(out) out = self._strip_success_message(out)
display.debug("_low_level_execute_command() done: rc=%d, stdout=%s, stderr=%s" % (rc, stdout, stderr)) display.debug(u"_low_level_execute_command() done: rc=%d, stdout=%s, stderr=%s" % (rc, out, err))
return dict(rc=rc, stdout=out, stdout_lines=out.splitlines(), stderr=err) return dict(rc=rc, stdout=out, stdout_lines=out.splitlines(), stderr=err)
def _get_first_available_file(self, faf, of=None, searchdir='files'): def _get_first_available_file(self, faf, of=None, searchdir='files'):