Skip to content

Commit

Permalink
Add missing path (#1236)
Browse files Browse the repository at this point in the history
  • Loading branch information
reivaj05 authored Aug 11, 2022
1 parent fa7d800 commit 3d9b1ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion kubectl-minio/cmd/tenant-events.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ func (d *eventsCmd) validate(args []string) error {
}

func (d *eventsCmd) run(args []string) error {
oclient, err := helpers.GetKubeOperatorClient()
path, _ := rootCmd.Flags().GetString(kubeconfig)
oclient, err := helpers.GetKubeOperatorClient(path)
if err != nil {
return err
}
Expand Down
3 changes: 2 additions & 1 deletion kubectl-minio/cmd/tenant-status.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ func validateTenantArgs(cmd string, args []string) error {
}

func (d *statusCmd) run(args []string) error {
oclient, err := helpers.GetKubeOperatorClient()
path, _ := rootCmd.Flags().GetString(kubeconfig)
oclient, err := helpers.GetKubeOperatorClient(path)
if err != nil {
return err
}
Expand Down

0 comments on commit 3d9b1ed

Please sign in to comment.