mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 20:07:37 -02:30
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:
@@ -91,7 +91,7 @@ def tower_auth_config(module):
|
|||||||
if os.path.isdir(config_file):
|
if os.path.isdir(config_file):
|
||||||
module.fail_json(msg='directory can not be used as config file: %s' % 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())
|
return parser.string_to_dict(f.read())
|
||||||
else:
|
else:
|
||||||
auth_config = {}
|
auth_config = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user