summaryrefslogtreecommitdiff
path: root/os_client_config/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'os_client_config/config.py')
-rw-r--r--os_client_config/config.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/os_client_config/config.py b/os_client_config/config.py
index 1742b5b..5cc8edd 100644
--- a/os_client_config/config.py
+++ b/os_client_config/config.py
@@ -30,9 +30,6 @@ CONFIG_FILES = [
os.path.join(d, 'clouds.yaml') for d in CONFIG_SEARCH_PATH]
BOOL_KEYS = ('insecure', 'cache')
REQUIRED_VALUES = ('auth_url', 'username', 'password', 'project_id')
-SERVICES = (
- 'compute', 'identity', 'network', 'metering', 'object-store',
- 'volume', 'dns', 'image', 'database')
def get_boolean(value):
@@ -54,16 +51,12 @@ class OpenStackConfig(object):
defaults.add('project_domain_name')
defaults.add('auth_url')
defaults.add('region_name')
- defaults.add('cache', 'false')
+ defaults.add('cache')
defaults.add('auth_token')
- defaults.add('insecure', 'false')
+ defaults.add('insecure')
+ defaults.add('endpoint_type')
defaults.add('cacert')
- for service in SERVICES:
- defaults.add('service_name', prefix=service)
- defaults.add('service_type', prefix=service)
- defaults.add('endpoint_type', prefix=service)
- defaults.add('endpoint', prefix=service)
self.defaults = defaults
# use a config file if it exists where expected