Skip to content

Commit

Permalink
Disable health check on index subcmd (#145)
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sevilla <[email protected]>
  • Loading branch information
rsevilla87 authored Nov 13, 2024
1 parent 6540d91 commit 0b6103a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ocp.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func openShiftCmd() *cobra.Command {
}
os.Exit(0)
}
if checkHealth && cmd.Name() != "cluster-health" {
if checkHealth && (cmd.Name() != "cluster-health" || cmd.Name() == "index") {
ocp.ClusterHealthCheck()
}
workloadConfig.ConfigDir = configDir
Expand Down

0 comments on commit 0b6103a

Please sign in to comment.