Skip to content

Commit

Permalink
fix telemetry client
Browse files Browse the repository at this point in the history
  • Loading branch information
colesnodgrass committed May 10, 2024
1 parent 8cd1e88 commit 499c38e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions internal/cmd/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"path/filepath"
)

var telClient telemetry.Client

// NewCmdLocal represents the local command.
func NewCmdLocal(provider k8s.Provider) *cobra.Command {
var telClient telemetry.Client

cmd := &cobra.Command{
Use: "local",
PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
Expand All @@ -34,7 +34,7 @@ func NewCmdLocal(provider k8s.Provider) *cobra.Command {
Short: "Manages local Airbyte installations",
}

cmd.AddCommand(NewCmdInstall(provider, telClient), NewCmdUninstall(provider, telClient))
cmd.AddCommand(NewCmdInstall(provider), NewCmdUninstall(provider))

return cmd
}
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/local/local_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const (
envBasicAuthPass = "ABCTL_LOCAL_INSTALL_PASSWORD"
)

func NewCmdInstall(provider k8s.Provider, telClient telemetry.Client) *cobra.Command {
func NewCmdInstall(provider k8s.Provider) *cobra.Command {
spinner := &pterm.DefaultSpinner

var (
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/local/local_uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/spf13/cobra"
)

func NewCmdUninstall(provider k8s.Provider, telClient telemetry.Client) *cobra.Command {
func NewCmdUninstall(provider k8s.Provider) *cobra.Command {
spinner := &pterm.DefaultSpinner

cmd := &cobra.Command{
Expand Down

0 comments on commit 499c38e

Please sign in to comment.