summaryrefslogtreecommitdiff
path: root/os_client_config
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2015-11-04 13:33:41 -0500
committerMonty Taylor <mordred@inaugust.com>2015-11-04 13:34:17 -0500
commitac51f4459106c10b0564747f36635779d40fadac (patch)
treead1dcdb6950a0f42d3172c3d91a9f33b3e8396e3 /os_client_config
parentba2571dcdc750a5f973b4f63b18888d0543a09a5 (diff)
downloados-client-config-ac51f4459106c10b0564747f36635779d40fadac.tar.gz
Normalize int config values to string
We have no things that expect actual int values. It's easy to write ints in yaml though - so normalize them to strings. Change-Id: I58cfdda697da9b7e030f4165ef8e60f4e9d00b66
Diffstat (limited to 'os_client_config')
-rw-r--r--os_client_config/config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/os_client_config/config.py b/os_client_config/config.py
index af9dc3b..eac4db6 100644
--- a/os_client_config/config.py
+++ b/os_client_config/config.py
@@ -235,6 +235,8 @@ class OpenStackConfig(object):
key = key.replace('-', '_')
if isinstance(value, dict):
new_config[key] = self._normalize_keys(value)
+ elif isinstance(value, int):
+ new_config[key] = str(value)
else:
new_config[key] = value
return new_config