Skip to content

Commit

Permalink
Merge pull request #1268 from jichenjc/update_event
Browse files Browse the repository at this point in the history
nit:make event to log for already associated FIP
  • Loading branch information
k8s-ci-robot authored Jun 22, 2022
2 parents c5ac70e + bdc9408 commit 7a8c2e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloud/services/networking/floatingip.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (s *Service) AssociateFloatingIP(eventObject runtime.Object, fp *floatingip
s.scope.Logger.Info("Associating floating IP", "id", fp.ID, "ip", fp.FloatingIP)

if fp.PortID == portID {
record.Eventf(eventObject, "SuccessfulAssociateFloatingIP", "Floating IP %s already associated with port %s", fp.FloatingIP, portID)
s.scope.Logger.Info("Floating IP already associated:", "id", fp.ID, "ip", fp.FloatingIP)
return nil
}

Expand Down

0 comments on commit 7a8c2e8

Please sign in to comment.