Browse Source

agent: fixup all check definitions from json config

pull/511/head
Ryan Uber 10 years ago
parent
commit
81d4e5cfd4
  1. 9
      command/agent/config.go

9
command/agent/config.go

@ -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 {

Loading…
Cancel
Save