Skip to content

Commit

Permalink
Update publicips.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecile Robert-Michon committed Oct 7, 2020
1 parent 9bd7254 commit 7de2cf9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cloud/services/publicips/publicips.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func (s *Service) Reconcile(ctx context.Context) error {
// Delete deletes the public IP with the provided scope.
func (s *Service) Delete(ctx context.Context) error {
for _, ip := range s.Scope.PublicIPSpecs() {
// TODO: if supporting BYO IP make sure unmanaged IPs aren't deleted
s.Scope.V(2).Info("deleting public IP", "public ip", ip.Name)
err := s.Client.Delete(ctx, s.Scope.ResourceGroup(), ip.Name)
if err != nil && azure.ResourceNotFound(err) {
Expand Down

0 comments on commit 7de2cf9

Please sign in to comment.