diff options
author | Andreas Jaeger <aj@suse.com> | 2015-12-20 17:47:11 +0100 |
---|---|---|
committer | Andreas Jaeger <aj@suse.com> | 2015-12-20 18:55:06 +0100 |
commit | 26eef40f0cc0eba83cab4319667278f9aa741955 (patch) | |
tree | 633406340b3ae864e53c8f883541a48628cc2e53 | |
parent | f891a606b04d9dcad21ad2fa7e3d31dee49c0192 (diff) | |
download | oslo-config-26eef40f0cc0eba83cab4319667278f9aa741955.tar.gz |
Capitalize IP3.2.0
IP as in IP address is always capitalized, capitalize as well in type
names.
Adjust test suite for change.
Change-Id: I4877a3cf322c5410c5bd36afa68e02aff87db7a6
-rw-r--r-- | oslo_config/tests/test_generator.py | 2 | ||||
-rw-r--r-- | oslo_config/types.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/oslo_config/tests/test_generator.py b/oslo_config/tests/test_generator.py index a727f60..f505963 100644 --- a/oslo_config/tests/test_generator.py +++ b/oslo_config/tests/test_generator.py @@ -553,7 +553,7 @@ class GeneratorTestCase(base.BaseTestCase): # From test # -# an ip address (ip address value) +# an ip address (IP address value) #ip_opt = 127.0.0.1 ''')), ('port_opt', diff --git a/oslo_config/types.py b/oslo_config/types.py index b7b68ec..bc4f777 100644 --- a/oslo_config/types.py +++ b/oslo_config/types.py @@ -563,7 +563,7 @@ class IPAddress(ConfigType): Added *type_name* parameter. """ - def __init__(self, version=None, type_name='ip address value'): + def __init__(self, version=None, type_name='IP address value'): super(IPAddress, self).__init__(type_name=type_name) version_checkers = { None: self._check_both_versions, |