forked from TrueCloudLab/frostfs-node
[#362] cmd/node: Use const key to UN/LOCODE attribute from the API lib
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
a737a46988
commit
3b9d4b4df1
1 changed files with 1 additions and 4 deletions
|
@ -46,14 +46,11 @@ type wellKnownNodeAttrDesc struct {
|
|||
defaultVal string
|
||||
}
|
||||
|
||||
// TODO: define attribute keys in API lib.
|
||||
const attrKeyLocode = "UN-LOCODE"
|
||||
|
||||
func listWellKnownAttrDesc() map[string]wellKnownNodeAttrDesc {
|
||||
return map[string]wellKnownNodeAttrDesc{
|
||||
netmap.AttrPrice: {defaultVal: strconv.FormatUint(defaultPrice, 10)},
|
||||
netmap.AttrCapacity: {defaultVal: strconv.FormatUint(defaultCapacity, 10)},
|
||||
attrKeyLocode: {explicit: true},
|
||||
netmap.AttrUNLOCODE: {explicit: true},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue