Handle non-ascii package names in state.format_log

Fixes #33605
This commit is contained in:
rallytime 2016-06-01 09:58:47 -04:00
parent b379dc57fd
commit ae332d1f88

View File

@ -233,8 +233,7 @@ def format_log(ret):
new = chg[pkg]['new']
if not new and new not in (False, None):
new = 'absent'
msg += '\'{0}\' changed from \'{1}\' to ' \
'\'{2}\'\n'.format(pkg, old, new)
msg += u'\'{0}\' changed from \'{1}\' to \'{2}\'\n'.format(pkg, old, new)
if not msg:
msg = str(ret['changes'])
if ret['result'] is True or ret['result'] is None: