X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2ims%2Fservice%2Fauditor%2Focloud_handler.py;h=04b48003ea995de5da27ce174dc7ae04cc1f846b;hb=26b17198615ace3334ebcfacbad9e08897e94826;hp=d1e2fa77714735123eb2adfa9cd22d890cdda4e3;hpb=7c167626f2692556b1fe073f87150f54a8c9910a;p=pti%2Fo2.git diff --git a/o2ims/service/auditor/ocloud_handler.py b/o2ims/service/auditor/ocloud_handler.py index d1e2fa7..04b4800 100644 --- a/o2ims/service/auditor/ocloud_handler.py +++ b/o2ims/service/auditor/ocloud_handler.py @@ -81,7 +81,7 @@ def is_outdated(ocloud: Ocloud, stxobj: StxGenericModel): def create_by(stxobj: StxGenericModel) -> Ocloud: - imsendpoint = config.get_api_url() + config.get_o2ims_api_base() + '/' + imsendpoint = config.get_api_url() globalcloudId = conf.DEFAULT.ocloud_global_id description = "An ocloud" ocloud = Ocloud(stxobj.id, stxobj.name, imsendpoint, @@ -105,6 +105,7 @@ def update_by(ocloud: Ocloud, stxobj: StxGenericModel) -> None: ocloud.createtime = stxobj.createtime ocloud.updatetime = stxobj.updatetime # ocloud.content = stxobj.content + ocloud.hash = stxobj.hash ocloud.version_number = ocloud.version_number + 1 ocloud.events.append(events.OcloudChanged(