Skip to content

Commit

Permalink
patch invalid usage of core logger instead of cli logger
Browse files Browse the repository at this point in the history
Signed-off-by: Dipankar Das <[email protected]>
  • Loading branch information
dipankardas011 committed Jun 1, 2024
1 parent a34aae5 commit 15f7284
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions cli/cmd/addNodesHACivo.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package cmd
import (
"os"

"github.com/ksctl/cli/logger"
"github.com/ksctl/ksctl/pkg/controllers"
"github.com/ksctl/ksctl/pkg/logger"
"github.com/ksctl/ksctl/pkg/types"

"github.com/ksctl/ksctl/pkg/helpers/consts"
Expand All @@ -22,7 +22,7 @@ ksctl create ha-civo add-nodes -n demo -r LON1 -s store-local --noWP 3 --nodeSiz
Run: func(cmd *cobra.Command, args []string) {
verbosity, _ := cmd.Flags().GetInt("verbose")

var log types.LoggerFactory = logger.NewGeneralLogger(verbosity, os.Stdout)
var log types.LoggerFactory = logger.NewLogger(verbosity, os.Stdout)
SetRequiredFeatureFlags(ctx, log, cmd)

cli.Client.Metadata.Provider = consts.CloudCivo
Expand Down
6 changes: 0 additions & 6 deletions cli/cmd/getCluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ import (
"github.com/spf13/cobra"
)

type printer struct {
ClusterName string `json:"cluster_name"`
Region string `json:"region"`
Provider string `json:"provider"`
}

var getClusterCmd = &cobra.Command{
Use: "get-clusters",
Aliases: []string{"get", "list"},
Expand Down

0 comments on commit 15f7284

Please sign in to comment.