Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
d2285 committed Nov 28, 2024
1 parent 23edd45 commit c1ad74c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/edit/editconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func BaseEditConfigCMD(cmd *cobra.Command, name, secret, dataKey string) error {
return fmt.Errorf("Failed to get editor from --editor flag: %w", err)
}

kubeconfigPath, err := cmd.PersistentFlags().GetString("kubeconfig")
kubeconfigPath, err := cmd.Flags().GetString("kubeconfig")
if err != nil {
return fmt.Errorf("Failed to setup Kubernetes client: %w", err)
}
Expand Down

0 comments on commit c1ad74c

Please sign in to comment.