Skip to content

Commit

Permalink
Merge pull request ansible#4453 from pschwartz/fix_cfg_load_order_to_…
Browse files Browse the repository at this point in the history
…match_docs

ansibleGH-4452 Corrected config load order to match docs
  • Loading branch information
jimi-c committed Oct 11, 2013
2 parents e4036b1 + 65c8c69 commit d73a5da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ansible/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def _get_config(p, section, key, env_var, default, boolean=True):

def load_config_file():
p = ConfigParser.ConfigParser()
path1 = os.path.expanduser(os.environ.get('ANSIBLE_CONFIG', "~/.ansible.cfg"))
path2 = os.getcwd() + "/ansible.cfg"
path1 = os.getcwd() + "/ansible.cfg"
path2 = os.path.expanduser(os.environ.get('ANSIBLE_CONFIG', "~/.ansible.cfg"))
path3 = "/etc/ansible/ansible.cfg"

if os.path.exists(path1):
Expand Down

0 comments on commit d73a5da

Please sign in to comment.