From 7cfd29c6215372fcdd726381dc63dea1bf72a545 Mon Sep 17 00:00:00 2001
From: jimenezquesa <manuel.jimenez@eviden.com>
Date: Tue, 18 Mar 2025 10:33:08 +0000
Subject: [PATCH] Solve some minor typo

---
 manifests/osm_clientservice.yaml                       | 3 +--
 src/osm_client/Config.py                               | 4 +---
 src/osm_client/client/OsmClient.py                     | 3 ++-
 src/osm_client/service/OsmClientServiceServicerImpl.py | 2 +-
 4 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/manifests/osm_clientservice.yaml b/manifests/osm_clientservice.yaml
index bf536e2fd..ef9eaa2f8 100644
--- a/manifests/osm_clientservice.yaml
+++ b/manifests/osm_clientservice.yaml
@@ -71,5 +71,4 @@ spec:
     - name: metrics
       protocol: TCP
       port: 9192
-      targetPort: 
----
\ No newline at end of file
+      targetPort: 9192
diff --git a/src/osm_client/Config.py b/src/osm_client/Config.py
index 84feff3d9..d34980c43 100644
--- a/src/osm_client/Config.py
+++ b/src/osm_client/Config.py
@@ -15,6 +15,4 @@
 from common.Settings import get_setting
 
 DEFAULT_OSM_ADDRESS = '127.0.0.1'
-OSM_ADDRESS = get_setting('OSM_ADDRESS', DEFAULT_OSM_ADDRESS)
- 
- 
\ No newline at end of file
+OSM_ADDRESS = get_setting('OSM_ADDRESS', default=DEFAULT_OSM_ADDRESS)
diff --git a/src/osm_client/client/OsmClient.py b/src/osm_client/client/OsmClient.py
index 239e2a2fb..2ef7a414e 100644
--- a/src/osm_client/client/OsmClient.py
+++ b/src/osm_client/client/OsmClient.py
@@ -16,6 +16,7 @@ import grpc, logging
 from common.Constants import ServiceNameEnum
 from common.Settings import get_service_host, get_service_port_grpc
 from common.proto.osm_client_pb2_grpc import OsmServiceStub
+from common.proto.osm_client_pb2 import CreateRequest, CreateResponse, NsiListResponse, GetRequest, GetResponse, DeleteRequest, DeleteResponse
 from common.proto.context_pb2 import (Empty)
 from common.tools.client.RetryDecorator import retry, delay_exponential
 from common.tools.grpc.Tools import grpc_message_to_json_string
@@ -76,4 +77,4 @@ class OsmClient:
         LOGGER.debug('NsiDelete request: {:s}'.format(grpc_message_to_json_string(request)))
         response = self.stub.NsiDelete(request)
         LOGGER.debug('NsiDelete result: {:s}'.format(grpc_message_to_json_string(response)))
-        return response
\ No newline at end of file
+        return response
diff --git a/src/osm_client/service/OsmClientServiceServicerImpl.py b/src/osm_client/service/OsmClientServiceServicerImpl.py
index 5bbde3b8b..8e9bf1ea6 100644
--- a/src/osm_client/service/OsmClientServiceServicerImpl.py
+++ b/src/osm_client/service/OsmClientServiceServicerImpl.py
@@ -67,4 +67,4 @@ class OsmClientServiceServicerImpl(OsmServiceServicer):
             resp = DeleteResponse(succeded = False, errormessage = str(e))
         else:
             resp = DeleteResponse(succeded = True)
-        return resp
\ No newline at end of file
+        return resp
-- 
GitLab