frostfs-node/cmd/frostfs-node/attributes.go
Pavel Karpy 923f84722a Move to frostfs-node
Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
2022-12-28 15:04:29 +03:00

14 lines
347 B
Go

package main
import (
nodeconfig "github.com/TrueCloudLab/frostfs-node/cmd/frostfs-node/config/node"
"github.com/TrueCloudLab/frostfs-node/pkg/util/attributes"
)
func parseAttributes(c *cfg) {
if nodeconfig.Relay(c.appCfg) {
return
}
fatalOnErr(attributes.ReadNodeAttributes(&c.cfgNodeInfo.localInfo, nodeconfig.Attributes(c.appCfg)))
}