mirror of
https://github.com/ansible/awx.git
synced 2026-01-23 07:28:02 -03:30
fix bug with config file [general] section
This commit is contained in:
parent
0a3ac25c1a
commit
0c3d27e818
@ -169,7 +169,7 @@ class TowerModule(AnsibleModule):
|
||||
if try_config_parsing:
|
||||
# TowerCLI used to support a config file with a missing [general] section by prepending it if missing
|
||||
if '[general]' not in config_string:
|
||||
config_string = '[general]{0}'.format(config_string)
|
||||
config_string = '[general]\n{0}'.format(config_string)
|
||||
|
||||
config = ConfigParser()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user