Skip to content

Commit 4803fe2

Browse files
Adolfo Duarteiamemilio
andauthored
Update pkg/cloud/openstack/clients/machineservice.go
Co-authored-by: Emilio Garcia <[email protected]>
1 parent efb5628 commit 4803fe2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/cloud/openstack/clients/machineservice.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,7 @@ func getSubnetsByFilter(is *InstanceService, opts *subnets.ListOpts) ([]subnets.
329329
}
330330

331331
func getOrCreatePort(is *InstanceService, name string, portOpts openstackconfigv1.PortOpts) (*ports.Port, error) {
332-
var portName string
333-
portName = name
332+
portName := name
334333
if portOpts.NameSuffix != "" {
335334
portName = name + "-" + portOpts.NameSuffix
336335
}

0 commit comments

Comments
 (0)