From 79e65e3e84de6b44a6fc10440f820cf96a2c2d13 Mon Sep 17 00:00:00 2001 From: Caleb Boylan Date: Wed, 29 Jan 2020 08:17:07 -0800 Subject: [PATCH] Open collection config 'r' for py3 compatibility --- awx_collection/plugins/module_utils/ansible_tower.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx_collection/plugins/module_utils/ansible_tower.py b/awx_collection/plugins/module_utils/ansible_tower.py index f1738a54bf..c51b410127 100644 --- a/awx_collection/plugins/module_utils/ansible_tower.py +++ b/awx_collection/plugins/module_utils/ansible_tower.py @@ -91,7 +91,7 @@ def tower_auth_config(module): if os.path.isdir(config_file): module.fail_json(msg='directory can not be used as config file: %s' % config_file) - with open(config_file, 'rb') as f: + with open(config_file, 'r') as f: return parser.string_to_dict(f.read()) else: auth_config = {}