X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2ims%2Fservice%2Fauditor%2Focloud_handler.py;h=4cc8ec741e732a16e100d28ebc13d1efd46c7b9c;hb=5143e92a36bd2142e04d0d80dbc60d68c3da03d7;hp=97cca3e880f723bde14f216d22ea3c76e8b5e6ec;hpb=b37a7d8e36bd9fdf862cb1aad29f9a29052e725f;p=pti%2Fo2.git diff --git a/o2ims/service/auditor/ocloud_handler.py b/o2ims/service/auditor/ocloud_handler.py index 97cca3e..4cc8ec7 100644 --- a/o2ims/service/auditor/ocloud_handler.py +++ b/o2ims/service/auditor/ocloud_handler.py @@ -14,7 +14,7 @@ # pylint: disable=unused-argument from __future__ import annotations -from typing import Callable +# from typing import Callable # from dataclasses import asdict # from typing import List, Dict, Callable, Type @@ -41,8 +41,7 @@ class InvalidResourceType(Exception): def update_ocloud( cmd: commands.UpdateOCloud, - uow: AbstractUnitOfWork, - publish: Callable + uow: AbstractUnitOfWork ): stxobj = cmd.data with uow: @@ -82,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() + config.get_o2ims_api_base() + '/' globalcloudId = stxobj.id # to be updated description = "An ocloud" ocloud = Ocloud(stxobj.id, stxobj.name, imsendpoint,