updated to use to_unicode as per feedback

pull/14899/head
Brian Coca 9 years ago committed by James Cammarata
parent b399fd64d4
commit 6f5e855e64

@ -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'):

Loading…
Cancel
Save