Skip to content

Commit

Permalink
Don't log anything when validating dummy task (#1604)
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
  • Loading branch information
ANeumann82 committed Jul 16, 2020
1 parent 645c9b9 commit 441f1f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/kudoctl/packages/convert/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package convert
import (
"errors"
"fmt"
"log"
"strings"

corev1 "k8s.io/api/core/v1"
Expand Down Expand Up @@ -125,7 +124,7 @@ func validateTask(t v1beta1.Task, templates map[string]string) []string {
resources = append(resources, t.Spec.ParameterFile)
}
case task.DummyTaskKind:
log.Printf("no validation for task kind %s implemented", t.Kind)
// Nothing to validate for Dummy Task
default:
errs = append(errs, fmt.Sprintf("unknown task kind %s", t.Kind))
}
Expand Down

0 comments on commit 441f1f8

Please sign in to comment.