From fd48d25a664330339af3ab2565a45bdd04ca06d4 Mon Sep 17 00:00:00 2001 From: Jason Whalley <42138928+JasonWhall@users.noreply.github.com> Date: Sat, 7 Nov 2020 00:28:41 +0000 Subject: [PATCH] Fix test Signed-off-by: Jason Whalley <42138928+JasonWhall@users.noreply.github.com> --- cmd/helm/lint.go | 2 +- .../lint-chart-with-template-with-invalid-yaml-with-debug.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/helm/lint.go b/cmd/helm/lint.go index dfa1d2085..96c512edb 100644 --- a/cmd/helm/lint.go +++ b/cmd/helm/lint.go @@ -102,7 +102,7 @@ func newLintCmd(out io.Writer) *cobra.Command { if settings.Debug { for _, contents := range result.RenderedContents { - fmt.Fprintf(&message, "---\n# Source: %s\n%s\n", path, contents) + fmt.Fprintf(&message, "---\n# Source: %s\n%s", path, contents) } } diff --git a/cmd/helm/testdata/output/lint-chart-with-template-with-invalid-yaml-with-debug.txt b/cmd/helm/testdata/output/lint-chart-with-template-with-invalid-yaml-with-debug.txt index d04c1efab..3092718e3 100644 --- a/cmd/helm/testdata/output/lint-chart-with-template-with-invalid-yaml-with-debug.txt +++ b/cmd/helm/testdata/output/lint-chart-with-template-with-invalid-yaml-with-debug.txt @@ -2,7 +2,6 @@ [INFO] Chart.yaml: icon is recommended [ERROR] Chart.yaml: chart type is not valid in apiVersion 'v1'. It is valid in apiVersion 'v2' [ERROR] templates/alpine-pod.yaml: unable to parse YAML: error converting YAML to JSON: yaml: line 11: could not find expected ':' - --- # Source: testdata/testcharts/chart-with-template-with-invalid-yaml apiVersion: v1