From 83a3ae14c6dd46637a1973db962191da5e2db423 Mon Sep 17 00:00:00 2001 From: NoSkillGirl Date: Mon, 1 Jun 2020 17:15:23 +0530 Subject: [PATCH] small fix --- pkg/kyverno/apply/command.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/kyverno/apply/command.go b/pkg/kyverno/apply/command.go index 1d93afaab9..1deefcef42 100644 --- a/pkg/kyverno/apply/command.go +++ b/pkg/kyverno/apply/command.go @@ -187,7 +187,10 @@ func getResource(path string) ([]*unstructured.Unstructured, error) { return nil, err } - files := common.SplitYAMLDocuments(file) + files, splitDocError := common.SplitYAMLDocuments(file) + if splitDocError != nil { + return nil, splitDocError + } for _, resourceYaml := range files {