mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Merge pull request #7219 from AlanCoding/config_bug
fix bug with config file [general] section Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
ec2c121762
@ -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