mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
Merge pull request #6038 from gamuniz/honor_thy_precedence
fixed precedence on ansible.cfg Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
d08f59272e
@ -106,7 +106,7 @@ def could_be_inventory(project_path, dir_path, filename):
|
||||
def read_ansible_config(project_path, variables_of_interest):
|
||||
fnames = ['/etc/ansible/ansible.cfg']
|
||||
if project_path:
|
||||
fnames.insert(0, os.path.join(project_path, 'ansible.cfg'))
|
||||
fnames.append(os.path.join(project_path, 'ansible.cfg'))
|
||||
values = {}
|
||||
try:
|
||||
parser = ConfigParser()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user