Skip to content

Commit

Permalink
fix applications block conversion (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
nareshkakubal authored Sep 16, 2024
1 parent d812214 commit 3a46b04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion banyan/resource_service_tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -615,12 +615,13 @@ func flattenServiceTunnelSpec(d *schema.ResourceData, spec servicetunnel.Spec) (
applications := make(map[string]interface{})
applications["include"] = eachPeerAccessTier.Applications.Include
applications["exclude"] = eachPeerAccessTier.Applications.Exclude
eachPeerAccessTierMap["applications"] = applications
eachPeerAccessTierMap["applications"] = []map[string]interface{}{applications}
}
if len(eachPeerAccessTierMap) > 0 {
flattened = append(flattened, eachPeerAccessTierMap)
}
}

err = d.Set("network_settings", flattened)
if err != nil {
return err
Expand Down

0 comments on commit 3a46b04

Please sign in to comment.