Fix SME sonar job 98/13498/2
authorlapentafd <francesco.lapenta@est.tech>
Tue, 1 Oct 2024 11:02:38 +0000 (12:02 +0100)
committerFrancesco Davide Lapenta <francesco.lapenta@est.tech>
Thu, 3 Oct 2024 09:57:31 +0000 (09:57 +0000)
Issue-ID: NONRTRIC-1033
Change-Id: I2a6415128d6328b1cd446010cb501313157d93b8
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
servicemanager/go.mod
servicemanager/internal/envreader/envreader.go
servicemanager/internal/publishservice/publishservice.go

index 0efcbaa..57a1849 100644 (file)
@@ -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
index 315772e..5e757f1 100644 (file)
@@ -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
+}
index d042cd0..5735d89 100644 (file)
@@ -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
+}