Skip to content

Commit 99d5670

Browse files
bshepharfao89
authored andcommitted
Update controllers/dataplane/openstackdataplanenodeset_controller.go
Co-authored-by: Fabricio Aguiar <fabricio@redhat.com>
1 parent 7034a99 commit 99d5670

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

controllers/dataplane/openstackdataplanenodeset_controller.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,14 @@ func (r *OpenStackDataPlaneNodeSetReconciler) machineConfigWatcherFn(
672672
return nil
673673
}
674674

675+
listOpts := []client.ListOption{
676+
client.InNamespace(obj.GetNamespace()),
677+
}
678+
if err := r.Client.List(ctx, nodeSets, listOpts...); err != nil {
679+
Log.Error(err, "Unable to retrieve OpenStackDataPlaneNodeSetList")
680+
return nil
681+
}
682+
675683
requests := make([]reconcile.Request, 0, len(nodeSets.Items))
676684
for _, nodeSet := range nodeSets.Items {
677685
requests = append(requests, reconcile.Request{

0 commit comments

Comments
 (0)