summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2015-11-09 09:07:06 -0500
committerMonty Taylor <mordred@inaugust.com>2015-11-09 09:07:06 -0500
commitc90de1f691a27d4f434d948f1b77db02c23162a4 (patch)
tree3638cd0ac63f477936665c8728780da90cdf4924
parent13b6fbabeb27a346c91a9fb3a1fb86c7adbd2779 (diff)
downloados-client-config-c90de1f691a27d4f434d948f1b77db02c23162a4.tar.gz
Workaround for int value with verbose_level
python-openstackclient uses an int value for verbose level which the stringification patch broke. As a quick fix, special case verbose_level, as fixing it properly might take more than 5 minutes. Change-Id: Ie12a40d3d3e400b3ec2103d7a58c4902fb10fc2d Closes-Bug: #1513919
-rw-r--r--os_client_config/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/os_client_config/config.py b/os_client_config/config.py
index 8d2a2ee..f439d5f 100644
--- a/os_client_config/config.py
+++ b/os_client_config/config.py
@@ -237,7 +237,7 @@ class OpenStackConfig(object):
new_config[key] = self._normalize_keys(value)
elif isinstance(value, bool):
new_config[key] = value
- elif isinstance(value, int):
+ elif isinstance(value, int) and key != 'verbose_level':
new_config[key] = str(value)
elif isinstance(value, float):
new_config[key] = str(value)