Commit 8f607394 authored by m1093782566's avatar m1093782566

remove duplicated nodeinfo.pods assignment

Change-Id: I8b15624e1cf146ab1693938bbd6ab1c6be030724
parent 573ad7ac
......@@ -133,10 +133,8 @@ func (n *NodeInfo) AllocatableResource() Resource {
}
func (n *NodeInfo) Clone() *NodeInfo {
pods := append([]*api.Pod(nil), n.pods...)
clone := &NodeInfo{
node: n.node,
pods: pods,
requestedResource: &(*n.requestedResource),
nonzeroRequest: &(*n.nonzeroRequest),
allocatableResource: &(*n.allocatableResource),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment