Skip to content

Commit

Permalink
fix(clustertool): remove undue verbosity from status check
Browse files Browse the repository at this point in the history
  • Loading branch information
PrivatePuffin committed Oct 26, 2024
1 parent 4fdae0c commit a1112c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clustertool/pkg/nodestatus/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func CheckStatus(node string) (string, error) {
argsslice := append(baseStatusCMD(node), "-o", "jsonpath={.spec.stage}")
out, err := helper.RunCommand(argsslice, true)
if err != nil {
log.Warn().Err(err).Str("output", string(out)).Msg("Error running command, checking for certificate issue")
log.Debug().Err(err).Str("output", string(out)).Msg("Error running command, checking for certificate issue")
if strings.Contains(string(out), "certificate signed by unknown authority") {
log.Debug().Msg("Certificate signed by unknown authority; retrying with insecure flag")
argsslice = append(baseStatusCMD(node), "-o", "jsonpath={.spec.stage}", "--insecure")
Expand Down

0 comments on commit a1112c5

Please sign in to comment.