Skip to content

Commit

Permalink
use resource id's subscription instead of client subscriptio id (#25145)
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxu92 authored Mar 5, 2024
1 parent 2fab868 commit f06c9cd
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,6 @@ func resourceFirewallPolicyRuleCollectionGroupCreateUpdate(d *pluginsdk.Resource
}

func resourceFirewallPolicyRuleCollectionGroupRead(d *pluginsdk.ResourceData, meta interface{}) error {
subscriptionId := meta.(*clients.Client).Account.SubscriptionId
client := meta.(*clients.Client).Network.FirewallPolicyRuleCollectionGroups
ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d)
defer cancel()
Expand All @@ -531,7 +530,7 @@ func resourceFirewallPolicyRuleCollectionGroupRead(d *pluginsdk.ResourceData, me
}

d.Set("name", id.RuleCollectionGroupName)
d.Set("firewall_policy_id", firewallpolicies.NewFirewallPolicyID(subscriptionId, id.ResourceGroupName, id.FirewallPolicyName).ID())
d.Set("firewall_policy_id", firewallpolicies.NewFirewallPolicyID(id.SubscriptionId, id.ResourceGroupName, id.FirewallPolicyName).ID())

if model := resp.Model; model != nil {
if props := model.Properties; props != nil {
Expand Down

0 comments on commit f06c9cd

Please sign in to comment.