Browse Source

Merge "Enable mutable config in monasca_transform"

Zuul 7 months ago
parent
commit
fba8cef150

+ 1
- 1
monasca_transform/service/transform_service.py View File

@@ -288,7 +288,7 @@ def main_service():
288 288
     """Method to use with Openstack service."""
289 289
     ConfigInitializer.basic_config()
290 290
     LogUtils.init_logger(__name__)
291
-    launcher = os_service.ServiceLauncher(cfg.CONF)
291
+    launcher = os_service.ServiceLauncher(cfg.CONF, restart_method='mutate')
292 292
     launcher.launch_service(Transform())
293 293
     launcher.wait()
294 294
 

+ 2
- 1
tests/unit/service/test_transform_service.py View File

@@ -53,7 +53,8 @@ class TransformServiceTestBase(unittest.TestCase):
53 53
                 launcher = oslo_service.service.launch(
54 54
                     self.conf,
55 55
                     transform_service.Transform(),
56
-                    workers=1)
56
+                    workers=1,
57
+                    restart_method='mutate')
57 58
                 status = launcher.wait()
58 59
             except SystemExit as exc:
59 60
                 traceback.print_exc()

Loading…
Cancel
Save