1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-29 10:55:05 +00:00

522 more missing changes from circleci

This commit is contained in:
shravan 2020-01-24 21:09:04 +05:30
parent db95002828
commit 29bb74c537

View file

@ -230,16 +230,10 @@ func generateEmptyResource(kindSchema *openapi_v2.Schema) interface{} {
return 0
case "boolean":
if kindSchema.GetDefault() != nil {
if string(kindSchema.GetDefault().Value.Value) == "true" {
return true
}
return false
return string(kindSchema.GetDefault().Value.Value) == "true"
}
if kindSchema.GetExample() != nil {
if string(kindSchema.GetExample().GetValue().Value) == "true" {
return true
}
return false
return string(kindSchema.GetExample().GetValue().Value) == "true"
}
return false
}