Fix: the IMS and DMS endpoint URL not correct when started in helm chart
[pti/o2.git] / o2ims / service / auditor / ocloud_handler.py
index 97cca3e..4cc8ec7 100644 (file)
@@ -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,