Skip to content

Commit 7cee975

Browse files
committed
refix for pr590 wrong parameter for a user provider network #594
1 parent 8b30361 commit 7cee975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/openstackcluster_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ func (r *OpenStackClusterReconciler) reconcileNetworkComponents(log logr.Logger,
306306
if err != nil {
307307
return errors.Errorf("failed to find network: %v", err)
308308
}
309-
if len(networkList) <= 0 {
309+
if len(networkList) == 0 {
310310
return errors.Errorf("failed to find any network: %v", err)
311311
}
312312
if len(networkList) > 1 {

0 commit comments

Comments
 (0)