X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2ims%2Fservice%2Fhandlers.py;h=830e1ff1402e4a4a98ab3ecd23303fb067639760;hb=19ee63847f8eb032009e63634b90eb594f3c0408;hp=c80ea6fd1cb47c0f79d9efaace318cdfeda928fd;hpb=81e3575a77366f30c2049f98c48a3087db0ea992;p=pti%2Fo2.git diff --git a/o2ims/service/handlers.py b/o2ims/service/handlers.py index c80ea6f..830e1ff 100644 --- a/o2ims/service/handlers.py +++ b/o2ims/service/handlers.py @@ -16,9 +16,10 @@ from __future__ import annotations # from dataclasses import asdict from typing import List, Dict, Callable, Type +from o2ims.service.auditor import dms_handler # TYPE_CHECKING from o2ims.domain import commands, events -# ocloud +from o2ims.service.auditor import ocloud_handler # if TYPE_CHECKING: # from . import unit_of_work @@ -33,4 +34,6 @@ EVENT_HANDLERS = { COMMAND_HANDLERS = { + commands.UpdateOCloud: ocloud_handler.update_ocloud, + commands.UpdateDms: dms_handler.update_dms } # type: Dict[Type[commands.Command], Callable]