mirror of https://github.com/ansible/ansible.git
Python 3: fix AnsibleError formatting
If you convert the error string to bytes and embed it inside another error string, you get Prefix: b'Embedded\nerror\nstring' which is not what we want. But we also don't want Unicode in error messages causing unexpected UnicodeEncodeErrors when on Python 2. So let's convert the error message into the native string type (bytes on Python 2, unicode on Python 3).pull/12757/head
parent
5617f6aad4
commit
ca826508d9
Loading…
Reference in New Issue