From b9208df46ede3c4a2fe5f4e9c45a2416124572e0 Mon Sep 17 00:00:00 2001 From: madhan-swe Date: Mon, 13 Feb 2023 16:23:31 +0530 Subject: [PATCH] go mod updated, error string changed to lowercase --- cmd/capibmadm/cmd/vpc/key/create.go | 2 +- go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/capibmadm/cmd/vpc/key/create.go b/cmd/capibmadm/cmd/vpc/key/create.go index 2bbb5d1191..b9e46b9bc0 100644 --- a/cmd/capibmadm/cmd/vpc/key/create.go +++ b/cmd/capibmadm/cmd/vpc/key/create.go @@ -65,7 +65,7 @@ Using file-path to VPC key : capibmadm vpc key create --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 } diff --git a/go.mod b/go.mod index 0bcb7b3666..dddf66ddbb 100644 --- a/go.mod +++ b/go.mod @@ -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 @@ -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