Skip to content

Commit

Permalink
Merge pull request #7219 from AlanCoding/config_bug
Browse files Browse the repository at this point in the history
fix bug with config file [general] section

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
  • Loading branch information
2 parents 0a3ac25 + 0c3d27e commit ec2c121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awx_collection/plugins/module_utils/tower_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def load_config(self, config_path):
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()

Expand Down

0 comments on commit ec2c121

Please sign in to comment.