Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
coddmeistr committed Feb 6, 2025
1 parent 0c389b9 commit a1062cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/billing/cron_delete_orphan_vpn_instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ func (s *BillingServiceServer) DeleteOrphanVPNInstances(ctx context.Context, log
}
inst := obj.Instance
log := log.With(zap.String("instance", inst.GetUuid()))
if inst.GetStatus() == statuspb.NoCloudStatus_DEL {
continue
}
if inst.BillingPlan == nil || inst.Config == nil {
continue
}
Expand Down

0 comments on commit a1062cb

Please sign in to comment.