Skip to content

Commit

Permalink
skip resources that are empty strings (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbren authored Jun 4, 2019
1 parent 139e661 commit 12e10f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/kube/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ func CreateResourceProviderFromPath(directory string) (*ResourceProvider, error)
}
specs := regexp.MustCompile("\n-+\n").Split(string(contents), -1)
for _, spec := range specs {
if strings.TrimSpace(spec) == "" {
continue
}
err = addYaml(spec)
if err != nil {
logrus.Errorf("Error parsing YAML %v", err)
Expand Down

0 comments on commit 12e10f9

Please sign in to comment.