Skip to content

Commit

Permalink
enhance available check
Browse files Browse the repository at this point in the history
  • Loading branch information
teowa committed Nov 28, 2024
1 parent 344eefd commit 65a9487
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ func resourceMonitoredSubscriptionsRefresh(ctx context.Context, client *monitore
availableCount := 0
for _, v := range monitoredSubscriptions {
for _, u := range *resp.Model.Properties.MonitoredSubscriptionList {
if u.SubscriptionId != nil && strings.EqualFold(v.SubscriptionId, *u.SubscriptionId) {
if u.SubscriptionId != nil && strings.EqualFold(v.SubscriptionId, *u.SubscriptionId) && u.Status != nil && *u.Status == monitoredsubscriptions.StatusActive {
availableCount++
break
}
Expand Down

0 comments on commit 65a9487

Please sign in to comment.