Fix nil definitions block
@@ -90,6 +90,7 @@ func GetHostPort(hostPort string) (string, int, error) {
func bodiesWithACBodies(defs *config.Definitions, body hcl.Body, ac, dac []string) []hcl.Body {
bodies := []hcl.Body{body}
+ if defs != nil {
for _, jwt := range defs.JWT {
for _, name := range config.NewAccessControl(ac, dac).List() {
if jwt.Name == name {
@@ -97,6 +98,7 @@ func bodiesWithACBodies(defs *config.Definitions, body hcl.Body, ac, dac []strin
}
}
}
+ }
return bodies
}
