mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 11:25:41 +03:00
core: match struct field order in Copy()
This commit is contained in:
@@ -2025,20 +2025,20 @@ func (n *Node) Copy() *Node {
|
||||
nn := new(Node)
|
||||
*nn = *n
|
||||
nn.Attributes = helper.CopyMapStringString(nn.Attributes)
|
||||
nn.Resources = nn.Resources.Copy()
|
||||
nn.Reserved = nn.Reserved.Copy()
|
||||
nn.NodeResources = nn.NodeResources.Copy()
|
||||
nn.ReservedResources = nn.ReservedResources.Copy()
|
||||
nn.Resources = nn.Resources.Copy()
|
||||
nn.Reserved = nn.Reserved.Copy()
|
||||
nn.Links = helper.CopyMapStringString(nn.Links)
|
||||
nn.Meta = helper.CopyMapStringString(nn.Meta)
|
||||
nn.Events = copyNodeEvents(n.Events)
|
||||
nn.DrainStrategy = nn.DrainStrategy.Copy()
|
||||
nn.LastDrain = nn.LastDrain.Copy()
|
||||
nn.Events = copyNodeEvents(n.Events)
|
||||
nn.Drivers = copyNodeDrivers(n.Drivers)
|
||||
nn.CSIControllerPlugins = copyNodeCSI(nn.CSIControllerPlugins)
|
||||
nn.CSINodePlugins = copyNodeCSI(nn.CSINodePlugins)
|
||||
nn.Drivers = copyNodeDrivers(n.Drivers)
|
||||
nn.HostVolumes = copyNodeHostVolumes(n.HostVolumes)
|
||||
nn.HostNetworks = copyNodeHostNetworks(n.HostNetworks)
|
||||
nn.LastDrain = nn.LastDrain.Copy()
|
||||
return nn
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user