diff options
author | James Cammarata <jimi@sngx.net> | 2015-07-29 22:36:21 -0400 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2015-07-29 22:36:21 -0400 |
commit | 769b0d92ee0eb548ae5f16fdaf54a7804fd08caf (patch) | |
tree | fddb05a02549d8e3c16878662a0cefb5da6cc13a | |
parent | 527ae360b041c3777f9b2d0f82fe6463028c7b5b (diff) | |
parent | 3d581e530621ce3522b484edb3a42eef1ac1f4e6 (diff) | |
download | ansible-769b0d92ee0eb548ae5f16fdaf54a7804fd08caf.tar.gz |
Merge pull request #11795 from amenonsen/nonedir
Don't stat None
-rw-r--r-- | lib/ansible/constants.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/constants.py b/lib/ansible/constants.py index 5976c3e38e..376952821e 100644 --- a/lib/ansible/constants.py +++ b/lib/ansible/constants.py @@ -78,8 +78,8 @@ def load_config_file(): path0 = os.getenv("ANSIBLE_CONFIG", None) if path0 is not None: path0 = os.path.expanduser(path0) - if os.path.isdir(path0): - path0 += "/ansible.cfg" + if os.path.isdir(path0): + path0 += "/ansible.cfg" path1 = os.getcwd() + "/ansible.cfg" path2 = os.path.expanduser("~/.ansible.cfg") path3 = "/etc/ansible/ansible.cfg" |