mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 05:59:28 -02:30
Open collection config 'r' for py3 compatibility
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