Gosec failure fixes and ci checks ajdustment
Change-Id: I430c3118b585ba924649ed32e8196e0e7e0bc260
diff --git a/internal/pkg/ofagent/connection.go b/internal/pkg/ofagent/connection.go
index 6bfd0af..017c00d 100644
--- a/internal/pkg/ofagent/connection.go
+++ b/internal/pkg/ofagent/connection.go
@@ -35,7 +35,10 @@
}
if ofa.volthaConnection != nil {
- ofa.volthaConnection.Close()
+ err := ofa.volthaConnection.Close()
+ if err != nil {
+ logger.Errorw(ctx, "failed-connection-close-proceeding-setting-to-nil", log.Fields{"error": err})
+ }
}
ofa.volthaConnection = nil