Skip to content

Commit ba5a8ba

Browse files
#714 fixed gosec issue
1 parent fbc5498 commit ba5a8ba

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

plugin/commands/loadbal/protocol_edit.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ Example:
6060
cobraCmd.Flags().IntVar(&thisCmd.ClientTimeout, "client-timeout", -1, T("Client side timeout setting, in seconds"))
6161
cobraCmd.Flags().IntVar(&thisCmd.ServerTimeout, "server-timeout", -1, T("Server side timeout setting, in seconds"))
6262
cobraCmd.Flags().IntVar(&thisCmd.SslId, "ssl-id", -1, T("Identifier of the SSL certificate to attach to this protocol. Only valid for HTTPS."))
63-
cobraCmd.MarkFlagRequired("id")
64-
cobraCmd.MarkFlagRequired("protocol-uuid")
63+
cobraCmd.MarkFlagRequired("id") //#nosec G104
64+
cobraCmd.MarkFlagRequired("protocol-uuid") //#nosec G104
6565
thisCmd.Command = cobraCmd
6666
return thisCmd
6767
}

plugin/commands/loadbal/protocol_edit_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package loadbal_test
22

33
import (
44
"errors"
5-
"fmt"
65
"github.com/IBM-Cloud/ibm-cloud-cli-sdk/testhelpers/terminal"
76
. "github.com/onsi/ginkgo/v2"
87
. "github.com/onsi/gomega"

0 commit comments

Comments
 (0)