Skip to content

Commit

Permalink
fix bug with config file [general] section
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding committed Jun 2, 2020
1 parent 0a3ac25 commit 0c3d27e
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 0c3d27e

Please sign in to comment.