1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

updated to use to_unicode as per feedback

This commit is contained in:
Brian Coca 2016-02-18 01:41:23 -08:00
parent b9d0662faf
commit 2b5fffa751

View file

@ -331,7 +331,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
else:
x = remote_stat['checksum'] # if 1, file is missing
except AnsibleError as e:
errormsg = to_bytes(e)
errormsg = to_unicode(e)
if errormsg.endswith('Permission denied'):
x = "2" # cannot read file
elif errormsg.endswith('MODULE FAILURE'):