From db85d87e8b187f3df6861e58d804fa73c107612e Mon Sep 17 00:00:00 2001 From: Alex Masi Date: Tue, 28 May 2024 18:33:00 +0000 Subject: [PATCH] fix comment --- deploy/deploy.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/deploy.go b/deploy/deploy.go index a85d1e50..342a3760 100644 --- a/deploy/deploy.go +++ b/deploy/deploy.go @@ -465,10 +465,10 @@ func (k *KubeadmSpec) Deploy(ctx context.Context) error { log.Infof("Creating kubeadm cluster with: %v", args) if out, err := run.OutLogCommand("sudo", args...); err != nil { msg := []string{} - // Filter output to only show lines relevant to the error message. For kind these are lines - // prefixed with "ERROR" or "Command Output". + // Filter output to only show lines relevant to the error message. For kubeadm these are lines + // containing "error" in any case. for _, line := range strings.Split(string(out), "\n") { - if strings.HasPrefix(line, "ERROR") || strings.HasPrefix(line, "Command Output") { + if strings.Contains(strings.ToLower(line), "error") { msg = append(msg, line) } }