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 committed Mar 4, 2024
1 parent 08a915a commit 442a280
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 @@ -566,7 +566,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 442a280

Please sign in to comment.