Update smd repo to handle CRDs

This commit is contained in:
Antoine Pelisse
2019-01-29 14:24:00 -08:00
parent 7e4cc38401
commit 1751fc013f
14 changed files with 606 additions and 141 deletions

View File

@@ -31,7 +31,7 @@ import (
func FromYAML(input []byte) (Value, error) {
var decoded interface{}
if len(input) == 0 || (len(input) == 4 && string(input) == "null") {
if len(input) == 4 && string(input) == "null" {
// Special case since the yaml package doesn't accurately
// preserve this.
return Value{Null: true}, nil