Merge pull request #8007 from msabramo/nova.py_set_defaults

nova.py: Set defaults for OpenStack settings
pull/8003/merge
James Cammarata 11 years ago
commit 366b39cfc1

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

Loading…
Cancel
Save