mirror of https://github.com/ansible/ansible.git
Use .encode() instead of str() to support unicode arguments.
str() throws an UnicodeEncodeError for code points that cannot be
represented in 7-bit ASCII. This makes it impossible to use any
non-ASCII characters in module arguments. Using encode('utf-8')
gives the desired result.
pull/3443/head
parent
cff4ab511c
commit
d7c6cf10c2
Loading…
Reference in New Issue