X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2ims%2Fservice%2Fwatcher%2Fpserver_cpu_watcher.py;h=51a5a76e1715f54343f88f3c43e1f0457800ef82;hb=44f01a560347914798d8f913696d0e495ee076f8;hp=66f22945323121ab082abf892836c14b76277b8e;hpb=387ee50cfe8e97ba211464c311bb7b6eb9ee2961;p=pti%2Fo2.git diff --git a/o2ims/service/watcher/pserver_cpu_watcher.py b/o2ims/service/watcher/pserver_cpu_watcher.py index 66f2294..51a5a76 100644 --- a/o2ims/service/watcher/pserver_cpu_watcher.py +++ b/o2ims/service/watcher/pserver_cpu_watcher.py @@ -13,11 +13,11 @@ # limitations under the License. from o2ims.domain.stx_object import StxGenericModel -from o2ims.service.client.base_client import BaseClient -# from o2ims.service.unit_of_work import AbstractUnitOfWork +from o2common.service.client.base_client import BaseClient +# from o2common.service.unit_of_work import AbstractUnitOfWork from o2ims.service.watcher.resource_watcher import ResourceWatcher from o2ims.domain import commands -from o2ims.service.messagebus import MessageBus +from o2common.service.messagebus import MessageBus from o2common.helper import o2logging logger = o2logging.get_logger(__name__) @@ -34,8 +34,5 @@ class PServerCpuWatcher(ResourceWatcher): def _probe(self, parent: StxGenericModel): hostid = parent.id newmodels = self._client.list(hostid=hostid) - # for newmodel in newmodels: - # super()._compare_and_update(newmodel) - # return newmodels return [commands.UpdatePserverCpu(data=m, parentid=hostid) for m in newmodels]