summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-06-09 15:07:58 +0000
committerGerrit Code Review <review@openstack.org>2015-06-09 15:07:58 +0000
commitb4ce57bda1b32cc8c545d8f6f7201948b651a308 (patch)
treef94d04a2e4686f15c51864ecce6fffeed2447731
parentde84b798f9eaac831621a63198ce2366effaeabd (diff)
parent9f7a50619a170ec9c9d702862ea617cc1b17e765 (diff)
downloados-client-config-b4ce57bda1b32cc8c545d8f6f7201948b651a308.tar.gz
Merge "Raise warning when a vendor profile is missing"
-rw-r--r--os_client_config/config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/os_client_config/config.py b/os_client_config/config.py
index c08fbee..bc8ab1e 100644
--- a/os_client_config/config.py
+++ b/os_client_config/config.py
@@ -232,7 +232,9 @@ class OpenStackConfig(object):
_auth_update(cloud, vendors.CLOUD_DEFAULTS[profile_name])
except KeyError:
# Can't find the requested vendor config, go about business
- pass
+ warnings.warn("Couldn't find the vendor profile '{0}', for"
+ " the cloud '{1}'".format(profile_name,
+ name))
if 'auth' not in cloud:
cloud['auth'] = dict()