internal: add handling of KVS config parse (#21079)

This commit is contained in:
Burkov Egor 2025-04-01 18:28:26 +03:00 committed by GitHub
parent b1bc641105
commit a0e3f1cc18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -941,6 +941,9 @@ func (c Config) SetKVS(s string, defaultKVS map[string]KVS) (dynamic bool, err e
if err != nil {
return false, err
}
if len(inputs) < 2 {
return false, Errorf("sub-system '%s' must have key", subSys)
}
dynamic = SubSystemsDynamic.Contains(subSys)