mirror of https://github.com/status-im/consul.git
agent: fixup all check definitions from json config
This commit is contained in:
parent
dd4fadfc9e
commit
81d4e5cfd4
|
@ -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…
Reference in New Issue