From 05be30168d123c3ffdb4f783cd24fee9c90e2d7a Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Sun, 5 Jul 2015 12:50:36 -0400 Subject: [PATCH] return empty string when config file is not used --- lib/ansible/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/constants.py b/lib/ansible/constants.py index e001ce76ca6..a771fe42c24 100644 --- a/lib/ansible/constants.py +++ b/lib/ansible/constants.py @@ -85,7 +85,7 @@ def load_config_file(): except configparser.Error as e: raise AnsibleOptionsError("Error reading config file: \n{0}".format(e)) return p, path - return None + return None, '' def shell_expand_path(path): ''' shell_expand_path is needed as os.path.expanduser does not work