From 112cae73df80a8f48b1724009db76036be3cd24e Mon Sep 17 00:00:00 2001 From: Ganesh Nalawade Date: Wed, 12 Jul 2017 18:09:25 +0530 Subject: [PATCH] Minor py3 compliance change for network module (#26695) * Convert return value of `execute_command` to appropriate type --- lib/ansible/module_utils/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/connection.py b/lib/ansible/module_utils/connection.py index c092536f96..0be18381d4 100644 --- a/lib/ansible/module_utils/connection.py +++ b/lib/ansible/module_utils/connection.py @@ -79,7 +79,7 @@ def exec_command(module, command): sf.close() - return rc, to_native(stdout), to_native(stderr) + return rc, to_native(stdout, errors='surrogate_or_strict'), to_native(stderr, errors='surrogate_or_strict') def request_builder(method, *args, **kwargs):