mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
updated to use to_unicode as per feedback
This commit is contained in:
@@ -331,7 +331,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
|||||||
else:
|
else:
|
||||||
x = remote_stat['checksum'] # if 1, file is missing
|
x = remote_stat['checksum'] # if 1, file is missing
|
||||||
except AnsibleError as e:
|
except AnsibleError as e:
|
||||||
errormsg = to_bytes(e)
|
errormsg = to_unicode(e)
|
||||||
if errormsg.endswith('Permission denied'):
|
if errormsg.endswith('Permission denied'):
|
||||||
x = "2" # cannot read file
|
x = "2" # cannot read file
|
||||||
elif errormsg.endswith('MODULE FAILURE'):
|
elif errormsg.endswith('MODULE FAILURE'):
|
||||||
|
|||||||
Reference in New Issue
Block a user