Open collection config 'r' for py3 compatibility

This commit is contained in:
Caleb Boylan
2020-01-29 08:17:07 -08:00
parent 42c45367a0
commit 79e65e3e84

View File

@@ -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 = {}