Add cleanup to TestCase.flags()
Prior to change this method was installing
a cleanup method to reset the changed config values
after the test was run.
It should still do that to prevent conf changes in one
test from interfering with other tests.
@@ -311,7 +311,7 @@ class TestCase(testtools.TestCase):
"""Override CONF variables for a test."""
group = kw.pop('group', None)
for k, v in kw.items():
- CONF.set_override(k, v, group)
+ self.override_config(k, v, group)
def start_service(self, name, host=None, **kwargs):
host = host if host else uuid.uuid4().hex
