Skip to content

Commit 8b30361

Browse files
committed
re-fixing for pr590 wrong parameter fora user provider newtork #594
1 parent 4fd3003 commit 8b30361

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

controllers/openstackcluster_controller.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,18 @@ func (r *OpenStackClusterReconciler) reconcileNetworkComponents(log logr.Logger,
297297

298298
netOpts := networks.ListOpts(openStackCluster.Spec.Network)
299299
networkList, err := networkingService.GetNetworksByFilter(&netOpts)
300+
<<<<<<< Updated upstream
300301
if len(networkList) == 0 {
301302
return errors.Errorf("failed to find any network: %v", err)
302303
}
304+
=======
305+
>>>>>>> Stashed changes
303306
if err != nil {
304307
return errors.Errorf("failed to find network: %v", err)
305308
}
309+
if len(networkList) <= 0 {
310+
return errors.Errorf("failed to find any network: %v", err)
311+
}
306312
if len(networkList) > 1 {
307313
return errors.Errorf("failed to find only one network (result: %v): %v", networkList, err)
308314
}

0 commit comments

Comments
 (0)