Skip to content

Commit

Permalink
go mod updated, error string changed to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmadhankumar committed Feb 13, 2023
1 parent 49a1611 commit d41b4d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/capibmadm/cmd/vpc/key/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Using file-path to VPC key : capibmadm vpc key create --name <key-name> --region
// Related issue: https://github.com/spf13/cobra/issues/1216
cmd.PreRunE = func(cmd *cobra.Command, args []string) error {
if (keyCreateOption.publicKey == "") == (filePath == "") {
return fmt.Errorf("The required flags either key-path of VPC key or the public-key within double quotation marks is not found")
return fmt.Errorf("The required flags either key-path of vpc key or the public-key within double quotation marks is not found")
}
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ require (
github.com/spf13/cobra v1.6.1
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.8.1
golang.org/x/crypto v0.3.0
golang.org/x/text v0.7.0
k8s.io/api v0.25.0
k8s.io/apiextensions-apiserver v0.25.0
Expand Down Expand Up @@ -123,7 +124,6 @@ require (
github.com/subosito/gotenv v1.4.1 // indirect
github.com/valyala/fastjson v1.6.3 // indirect
go.mongodb.org/mongo-driver v1.10.0 // indirect
golang.org/x/crypto v0.3.0 // indirect
golang.org/x/net v0.4.0 // indirect
golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect
golang.org/x/sys v0.3.0 // indirect
Expand Down

0 comments on commit d41b4d6

Please sign in to comment.