1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #8007 from msabramo/nova.py_set_defaults

nova.py: Set defaults for OpenStack settings
This commit is contained in:
James Cammarata 2014-07-05 00:36:18 -05:00
commit 366b39cfc1

View file

@ -36,8 +36,14 @@ NOVA_CONFIG_FILES = [os.getcwd() + "/nova.ini",
os.path.expanduser(os.environ.get('ANSIBLE_CONFIG', "~/nova.ini")), os.path.expanduser(os.environ.get('ANSIBLE_CONFIG', "~/nova.ini")),
"/etc/ansible/nova.ini"] "/etc/ansible/nova.ini"]
NOVA_DEFAULTS = {
'auth_system': None,
'region_name': None,
}
def nova_load_config_file(): def nova_load_config_file():
p = ConfigParser.SafeConfigParser() p = ConfigParser.SafeConfigParser(NOVA_DEFAULTS)
for path in NOVA_CONFIG_FILES: for path in NOVA_CONFIG_FILES:
if os.path.exists(path): if os.path.exists(path):