fix logic

This commit is contained in:
Yann Hamon 2020-10-18 14:34:47 +02:00
parent c75799e951
commit 74f29f742f

View file

@ -251,7 +251,7 @@ func realMain() int {
registries := []registry.Registry{}
for _, schemaLocation := range schemaLocationsParam {
if strings.HasSuffix(schemaLocation, "json") { // If we dont specify a full templated path, we assume the paths of kubernetesjsonschema.dev
if !strings.HasSuffix(schemaLocation, "json") { // If we dont specify a full templated path, we assume the paths of kubernetesjsonschema.dev
schemaLocation += "/{{ .NormalizedVersion }}-standalone{{ .StrictSuffix }}/{{ .ResourceKind }}{{ .KindSuffix }}.json"
}