Skip to content

Commit

Permalink
updated to use to_unicode as per feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoca committed Feb 18, 2016
1 parent b9d0662 commit 2b5fffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/plugins/action/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def _remote_checksum(self, path, all_vars):
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'):
Expand Down

0 comments on commit 2b5fffa

Please sign in to comment.