diff options
author | Monty Taylor <mordred@inaugust.com> | 2015-11-04 13:33:41 -0500 |
---|---|---|
committer | Monty Taylor <mordred@inaugust.com> | 2015-11-04 13:34:17 -0500 |
commit | ac51f4459106c10b0564747f36635779d40fadac (patch) | |
tree | ad1dcdb6950a0f42d3172c3d91a9f33b3e8396e3 | |
parent | ba2571dcdc750a5f973b4f63b18888d0543a09a5 (diff) | |
download | os-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
-rw-r--r-- | os_client_config/config.py | 2 |
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 |