TrivialFix: Remove default=None when set value in Config

By default oslo.cfg sets the default values as None [1], There is
no need to explicitly do this.

[1] https://github.com/openstack/oslo.config/blob/master/oslo_config/cfg.py#L829

Change-Id: I84f2c604b0ac69713d0c1f1e4dd1bd9cb5a10b59
This commit is contained in:
melissaml 2016-10-19 11:28:40 +08:00
parent fed5068270
commit c41d9b424c
1 changed files with 2 additions and 2 deletions

View File

@ -82,9 +82,9 @@ class CacheRegionTest(BaseTestCase):
def _add_dummy_config_group(self):
self.config_fixture.register_opt(
cfg.IntOpt('cache_time', default=None), group=TEST_GROUP)
cfg.IntOpt('cache_time'), group=TEST_GROUP)
self.config_fixture.register_opt(
cfg.IntOpt('cache_time', default=None), group=TEST_GROUP2)
cfg.IntOpt('cache_time'), group=TEST_GROUP2)
def _get_cacheable_function(self):
memoize = cache.get_memoization_decorator(