diff --git a/plugins/inventory/nova.py b/plugins/inventory/nova.py index 89595645584..3ae19d0d177 100755 --- a/plugins/inventory/nova.py +++ b/plugins/inventory/nova.py @@ -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):