Refactor watchers
[pti/o2.git] / o2ims / entrypoints / resource_watcher.py
index acde2d2..9e17485 100644 (file)
@@ -50,17 +50,17 @@ class WatcherService(cotyledon.Service):
     def run(self):\r
         try:\r
             root = WatcherTree(OcloudWatcher(\r
-                StxSaOcloudClient(), self.bus.uow))\r
+                StxSaOcloudClient(), self.bus))\r
             root.addchild(\r
-                DmsWatcher(StxSaDmsClient(), self.bus.uow))\r
+                DmsWatcher(StxSaDmsClient(), self.bus))\r
 \r
             child_respool = root.addchild(\r
                 ResourcePoolWatcher(StxSaResourcePoolClient(),\r
-                                    self.bus.uow))\r
+                                    self.bus))\r
             child_pserver = child_respool.addchild(\r
-                PServerWatcher(StxPserverClient(), self.bus.uow))\r
+                PServerWatcher(StxPserverClient(), self.bus))\r
             child_pserver.addchild(\r
-                PServerCpuWatcher(StxCpuClient(), self.bus.uow))\r
+                PServerCpuWatcher(StxCpuClient(), self.bus))\r
 \r
             self.worker.add_watcher(root)\r
 \r