agent: fixup all check definitions from json config

This commit is contained in:
Ryan Uber 2014-11-30 18:27:37 -08:00
parent dd4fadfc9e
commit 81d4e5cfd4
1 changed files with 7 additions and 2 deletions

View File

@ -559,8 +559,13 @@ func DecodeServiceDefinition(raw interface{}) (*ServiceDefinition, error) {
}
}
sub, ok = rawMap["check"]
if !ok {
for k, v := range rawMap {
if strings.ToLower(k) == "check" {
sub = v
break
}
}
if sub == nil {
goto AFTER_FIX
}
if err := FixupCheckType(sub); err != nil {