From 2b5fffa751c0a6ec364e66cc648f456d28b3a8a7 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 18 Feb 2016 01:41:23 -0800 Subject: [PATCH] updated to use to_unicode as per feedback --- lib/ansible/plugins/action/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/__init__.py b/lib/ansible/plugins/action/__init__.py index 4ed496fbe9..7c8d6a1bb7 100644 --- a/lib/ansible/plugins/action/__init__.py +++ b/lib/ansible/plugins/action/__init__.py @@ -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'):