diff options
author | ChangBo Guo(gcb) <eric.guo@easystack.cn> | 2016-11-21 23:25:23 +0800 |
---|---|---|
committer | ChangBo Guo(gcb) <eric.guo@easystack.cn> | 2016-11-21 23:27:08 +0800 |
commit | 2547c59d950065192aa19173d6946da480978035 (patch) | |
tree | 89998c2a2a9cf1d5e7872c020a5362b97db90dca /oslo_config | |
parent | 42af1ad069ce09c465101cd2dcad93940c856c94 (diff) | |
download | oslo-config-2547c59d950065192aa19173d6946da480978035.tar.gz |
Revert "Fix conversion to item_type on __call__ in List type"
This reverts commit 42af1ad069ce09c465101cd2dcad93940c856c94.
That commit breaks nova's test see:
http://logs.openstack.org/periodic/periodic-nova-py27-with-oslo-master/e52702e/testr_results.html.gz
Change-Id: If2747ede5da172431c53ab0f6d02a4c91d45d57c
Diffstat (limited to 'oslo_config')
-rw-r--r-- | oslo_config/tests/test_types.py | 5 | ||||
-rw-r--r-- | oslo_config/types.py | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/oslo_config/tests/test_types.py b/oslo_config/tests/test_types.py index c494297..2389d9b 100644 --- a/oslo_config/tests/test_types.py +++ b/oslo_config/tests/test_types.py @@ -531,11 +531,6 @@ class ListTypeTests(TypeTestHelper, unittest.TestCase): self.assertConvertedValue('1,2,3,5', [1, 2, 3, 5]) - def test_tuple_of_custom_type(self): - self.type_instance = types.List(types.Integer()) - self.assertConvertedValue(('1', '2', '3', '5'), - [1, 2, 3, 5]) - def test_bounds_parsing(self): self.type_instance = types.List(types.Integer(), bounds=True) self.assertConvertedValue('[1,2,3]', [1, 2, 3]) diff --git a/oslo_config/types.py b/oslo_config/types.py index 24768bc..4096f2e 100644 --- a/oslo_config/types.py +++ b/oslo_config/types.py @@ -441,7 +441,7 @@ class List(ConfigType): def __call__(self, value): if isinstance(value, (list, tuple)): - return list(six.moves.map(self.item_type, value)) + return list(value) s = value.strip() if self.bounds: |