Skip to content

Commit

Permalink
fix incorrect variable assignment (#3787)
Browse files Browse the repository at this point in the history
Signed-off-by: zhangzujian <zhangzujian.7@gmail.com>
  • Loading branch information
zhangzujian authored and zbb88888 committed Mar 6, 2024
1 parent 5d391bb commit e3a7587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ func (c *Controller) updateProviderNetworkForNodeDeletion(pn *kubeovnv1.Provider
// update provider network spec
pn, newPn = newPn, nil
if excludeNodes := util.RemoveString(pn.Spec.ExcludeNodes, node); len(excludeNodes) != len(pn.Spec.ExcludeNodes) {
newPn := pn.DeepCopy()
newPn = pn.DeepCopy()
newPn.Spec.ExcludeNodes = excludeNodes
}

Expand Down

0 comments on commit e3a7587

Please sign in to comment.