From 771bb1e1f6af2a8edf5fab4bfe0ba561fe924eb0 Mon Sep 17 00:00:00 2001 From: Shilpa-Gokul Date: Thu, 9 Feb 2023 18:23:45 +0530 Subject: [PATCH] Fixed lint errors --- cmd/capibmadm/cmd/powervs/port/create.go | 32 +++++++++++++----------- cmd/capibmadm/cmd/powervs/port/type.go | 12 ++++----- go.sum | 1 - 3 files changed, 24 insertions(+), 21 deletions(-) diff --git a/cmd/capibmadm/cmd/powervs/port/create.go b/cmd/capibmadm/cmd/powervs/port/create.go index 0558f8429..f04045cc2 100644 --- a/cmd/capibmadm/cmd/powervs/port/create.go +++ b/cmd/capibmadm/cmd/powervs/port/create.go @@ -19,17 +19,20 @@ package port import ( "context" "fmt" + "os" + + "github.com/spf13/cobra" + client "github.com/IBM-Cloud/power-go-client/clients/instance" "github.com/IBM-Cloud/power-go-client/power/models" - "github.com/spf13/cobra" - "k8s.io/klog/v2" - "os" + + "sigs.k8s.io/cluster-api/cmd/clusterctl/log" + "sigs.k8s.io/cluster-api-provider-ibmcloud/cmd/capibmadm/clients/iam" "sigs.k8s.io/cluster-api-provider-ibmcloud/cmd/capibmadm/clients/powervs" "sigs.k8s.io/cluster-api-provider-ibmcloud/cmd/capibmadm/options" "sigs.k8s.io/cluster-api-provider-ibmcloud/cmd/capibmadm/printer" "sigs.k8s.io/cluster-api-provider-ibmcloud/cmd/capibmadm/utils" - logf "sigs.k8s.io/cluster-api/cmd/clusterctl/log" ) type portCreateOptions struct { @@ -38,9 +41,10 @@ type portCreateOptions struct { description string } +// CreateCommand create powervs network port. func CreateCommand() *cobra.Command { cmd := &cobra.Command{ - Use: "create PORT_NUMBER", + Use: "create", Short: "Create PowerVS Port", Example: ` # Create PowerVS port, provided networkID and IPAddress @@ -64,8 +68,8 @@ capibmadm powervs port create --network --ip-address