Skip to content

Commit

Permalink
Merge pull request #2064 from Nordix/fix/port-nil-pointer
Browse files Browse the repository at this point in the history
Fix nil pointer issue while creating port
  • Loading branch information
k8s-ci-robot authored May 7, 2024
2 parents 349ec37 + 641c896 commit 078a792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloud/services/networking/port.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func (s *Service) CreatePort(eventObject runtime.Object, portSpec *infrav1.Resol

port, err := s.client.CreatePort(builder)
if err != nil {
record.Warnf(eventObject, "FailedCreatePort", "Failed to create port %s: %v", port.Name, err)
record.Warnf(eventObject, "FailedCreatePort", "Failed to create port %s: %v", portSpec.Name, err)
return nil, err
}

Expand Down

0 comments on commit 078a792

Please sign in to comment.