Skip to content

Commit

Permalink
Fix not ignoring empty YAML (resolves k3s-io#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
matej-g committed Mar 13, 2019
1 parent dc91c48 commit 0d06032
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/deploy/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ func yamlToObjects(in io.Reader) ([]runtime.Object, error) {
if err == io.EOF {
break
}
if bytes.Count(raw, []byte{'\n'}) == len(raw) {
break
}
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 0d06032

Please sign in to comment.