Skip to content

Commit 069eb27

Browse files
Apply suggestions from code review
Co-authored-by: Stefan Büringer <[email protected]>
1 parent 03b6160 commit 069eb27

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/cloud/services/networking/network.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,10 @@ func (s *Service) ReconcileNetwork(clusterName string, openStackCluster *infrav1
6060
var portSecurityEnabled gophercloud.EnabledState
6161
var opts createOpts
6262
if openStackCluster.Spec.DisablePortSecurity {
63-
portSecurityEnabled = gophercloud.Disabled
6463
opts = createOpts{
6564
AdminStateUp: gophercloud.Enabled,
6665
Name: networkName,
67-
PortSecurityEnabled: portSecurityEnabled,
66+
PortSecurityEnabled: gophercloud.Disabled,
6867
}
6968
} else {
7069
opts = createOpts{

0 commit comments

Comments
 (0)