[#232] netmap: Allow empty values for unknown parameters in network config

Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
Alexander Chuprov 2024-07-09 12:19:25 +03:00
parent 560cbbd1f1
commit 51cefd4908

View file

@ -49,11 +49,6 @@ func (x *NetworkInfo) readFromV2(m netmap.NetworkInfo, checkFieldPresence bool)
mNames[name] = struct{}{} mNames[name] = struct{}{}
switch name { switch name {
default:
if len(prm.GetValue()) == 0 {
err = fmt.Errorf("empty attribute value %s", name)
return true
}
case case
configAuditFee, configAuditFee,
configStoragePrice, configStoragePrice,