Skip to content

Commit

Permalink
Handle machien deletion when NLB/LB has been deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamradhakrishnan committed Feb 28, 2024
1 parent 00c75ff commit 960c09e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloud/scope/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ func (m *MachineScope) ReconcileDeleteInstanceOnLB(ctx context.Context) error {
})
if err != nil {
if ociutil.IsNotFound(err) {
m.Logger.Info("LB has been deleted")
m.Logger.Info("LB has been deleted", "lb", *loadbalancerId)
return nil
}
return err
Expand Down Expand Up @@ -663,7 +663,7 @@ func (m *MachineScope) ReconcileDeleteInstanceOnLB(ctx context.Context) error {
})
if err != nil {
if ociutil.IsNotFound(err) {
m.Logger.Info("NLB has been deleted")
m.Logger.Info("NLB has been deleted", "nlb", *loadbalancerId)
return nil
}
return err
Expand Down

0 comments on commit 960c09e

Please sign in to comment.