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 576866b commit 680ca67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/node.go
Expand Up @@ -536,7 +536,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 680ca67

Please sign in to comment.