Skip to content

Commit

Permalink
Fix nil pointer issue while creating port
Browse files Browse the repository at this point in the history
Signed-off-by: Kashif Khan <[email protected]>
  • Loading branch information
kashifest committed May 7, 2024
1 parent 349ec37 commit 641c896
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 641c896

Please sign in to comment.