Skip to content

Commit

Permalink
meraki_networks_group_policies - crash #148
Browse files Browse the repository at this point in the history
-Fail in toSdkFunction
  • Loading branch information
fmunozmiranda committed Sep 27, 2024
1 parent 556c37a commit 97f6fc3
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions internal/provider/resource_meraki_networks_group_policies.go
Original file line number Diff line number Diff line change
Expand Up @@ -1823,16 +1823,17 @@ func (r *NetworksGroupPoliciesRs) toSdkApiRequestUpdate(ctx context.Context) *me
}
}
var requestNetworksUpdateNetworkGroupPolicyFirewallAndTrafficShapingL7FirewallRules []merakigosdk.RequestNetworksUpdateNetworkGroupPolicyFirewallAndTrafficShapingL7FirewallRules

for _, rItem1 := range *r.FirewallAndTrafficShaping.L7FirewallRules {
policy := rItem1.Policy.ValueString()
typeR := rItem1.Type.ValueString()
value := rItem1.Value.ValueString()
requestNetworksUpdateNetworkGroupPolicyFirewallAndTrafficShapingL7FirewallRules = append(requestNetworksUpdateNetworkGroupPolicyFirewallAndTrafficShapingL7FirewallRules, merakigosdk.RequestNetworksUpdateNetworkGroupPolicyFirewallAndTrafficShapingL7FirewallRules{
Policy: policy,
Type: typeR,
Value: value,
})
if *r.FirewallAndTrafficShaping.L7FirewallRules != nil {
for _, rItem1 := range *r.FirewallAndTrafficShaping.L7FirewallRules {
policy := rItem1.Policy.ValueString()
typeR := rItem1.Type.ValueString()
value := rItem1.Value.ValueString()
requestNetworksUpdateNetworkGroupPolicyFirewallAndTrafficShapingL7FirewallRules = append(requestNetworksUpdateNetworkGroupPolicyFirewallAndTrafficShapingL7FirewallRules, merakigosdk.RequestNetworksUpdateNetworkGroupPolicyFirewallAndTrafficShapingL7FirewallRules{
Policy: policy,
Type: typeR,
Value: value,
})
}
}

settings := r.FirewallAndTrafficShaping.Settings.ValueString()
Expand Down

0 comments on commit 97f6fc3

Please sign in to comment.