fix main: Do not stop templater if a single resource set is empty

This fixes #91
This commit is contained in:
Vincent Ambo 2017-10-27 02:36:27 +02:00
parent 68e2f99062
commit 2574942338

View file

@ -85,7 +85,7 @@ func templateCommand() {
for _, rs := range *resourceSets { for _, rs := range *resourceSets {
if len(rs.Resources) == 0 { if len(rs.Resources) == 0 {
fmt.Fprintf(os.Stderr, "Warning: Resource set '%s' contains no valid templates\n", rs.Name) fmt.Fprintf(os.Stderr, "Warning: Resource set '%s' contains no valid templates\n", rs.Name)
break continue
} }
for _, r := range rs.Resources { for _, r := range rs.Resources {