From 3d581e530621ce3522b484edb3a42eef1ac1f4e6 Mon Sep 17 00:00:00 2001 From: Abhijit Menon-Sen Date: Thu, 30 Jul 2015 07:58:30 +0530 Subject: [PATCH] Don't stat None Fixes #11794, regression introduced by #11010 --- lib/ansible/constants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/constants.py b/lib/ansible/constants.py index 5976c3e38eb..376952821e8 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"