From 12bf42c9cef25b0d697d3cbde1a95f0ced253135 Mon Sep 17 00:00:00 2001 From: lapentafd Date: Tue, 1 Oct 2024 12:02:38 +0100 Subject: [PATCH] Fix SME sonar job Issue-ID: NONRTRIC-1033 Change-Id: I2a6415128d6328b1cd446010cb501313157d93b8 Signed-off-by: lapentafd --- servicemanager/go.mod | 2 +- servicemanager/internal/envreader/envreader.go | 2 +- servicemanager/internal/publishservice/publishservice.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/servicemanager/go.mod b/servicemanager/go.mod index 0efcbaa..57a1849 100644 --- a/servicemanager/go.mod +++ b/servicemanager/go.mod @@ -6,6 +6,7 @@ require ( github.com/deepmap/oapi-codegen v1.11.0 github.com/getkin/kin-openapi v0.106.0 github.com/go-resty/resty/v2 v2.10.0 + github.com/google/uuid v1.3.0 github.com/joho/godotenv v1.5.1 github.com/labstack/echo/v4 v4.10.2 github.com/sirupsen/logrus v1.9.3 @@ -54,7 +55,6 @@ require ( github.com/google/go-cmp v0.5.8 // indirect github.com/google/gofuzz v1.2.0 // indirect github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect - github.com/google/uuid v1.3.0 // indirect github.com/gorilla/mux v1.8.0 // indirect github.com/gosuri/uitable v0.0.4 // indirect github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 // indirect diff --git a/servicemanager/internal/envreader/envreader.go b/servicemanager/internal/envreader/envreader.go index 315772e..5e757f1 100644 --- a/servicemanager/internal/envreader/envreader.go +++ b/servicemanager/internal/envreader/envreader.go @@ -241,4 +241,4 @@ func (m *MockConfigReader) ReadDotEnv() (map[string]string, map[string]int, erro // Return the mocked configuration for testing myPorts, err := createMapPorts(m.MockedConfig) return m.MockedConfig, myPorts, err -} \ No newline at end of file +} diff --git a/servicemanager/internal/publishservice/publishservice.go b/servicemanager/internal/publishservice/publishservice.go index d042cd0..5735d89 100644 --- a/servicemanager/internal/publishservice/publishservice.go +++ b/servicemanager/internal/publishservice/publishservice.go @@ -369,4 +369,4 @@ func sendCoreError(ctx echo.Context, code int, message string) error { } err := ctx.JSON(code, pd) return err -} \ No newline at end of file +} -- 2.16.6