mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Merge pull request #5793 from squidboylan/fix_py3_k_v_config
Open collection config 'r' for py3 compatibility Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
d6c70e8d3a
@ -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 = {}
|
||||
|
Loading…
Reference in New Issue
Block a user