diff options
Diffstat (limited to 'templater/templater.go')
-rw-r--r-- | templater/templater.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templater/templater.go b/templater/templater.go index 67e33a5355f1..9a00da3a75f6 100644 --- a/templater/templater.go +++ b/templater/templater.go @@ -33,6 +33,11 @@ type TemplatingError struct { func LoadAndPrepareTemplates(include *[]string, exclude *[]string, c *context.Context) (output []string, err error) { limitedResourceSets := applyLimits(&c.ResourceSets, include, exclude) + if len(*limitedResourceSets) == 0 { + fmt.Fprintln(os.Stderr, "No valid resource sets included!") + return + } + for _, rs := range *limitedResourceSets { err = processResourceSet(c, &rs, &output) |