mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
return empty string when config file is not used
This commit is contained in:
parent
51efd765be
commit
05be30168d
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ def load_config_file():
|
||||||
except configparser.Error as e:
|
except configparser.Error as e:
|
||||||
raise AnsibleOptionsError("Error reading config file: \n{0}".format(e))
|
raise AnsibleOptionsError("Error reading config file: \n{0}".format(e))
|
||||||
return p, path
|
return p, path
|
||||||
return None
|
return None, ''
|
||||||
|
|
||||||
def shell_expand_path(path):
|
def shell_expand_path(path):
|
||||||
''' shell_expand_path is needed as os.path.expanduser does not work
|
''' shell_expand_path is needed as os.path.expanduser does not work
|
||||||
|
|
Loading…
Reference in a new issue