Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
soufi committed Dec 2, 2021
2 parents 043693e + 30ed58b commit 3bd8726
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion anypoint/data_source_team.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func dataSourceTeam() *schema.Resource {
},
"id": {
Type: schema.TypeString,
Computed: true,
Required: true,
},
"team_id": {
Type: schema.TypeString,
Expand Down
2 changes: 1 addition & 1 deletion anypoint/resource_vpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ func newVPCBody(d *schema.ResourceData) *vpc.VpcCore {
orules := d.Get("firewall_rules").([]interface{})
frules := make([]vpc.FirewallRule, len(orules))
for index, rule := range orules {
frules[index] = *vpc.NewFirewallRule(rule.(map[string]interface{})["cidr_block"].(string), rule.(map[string]interface{})["from_port"].(int32), rule.(map[string]interface{})["protocol"].(string), rule.(map[string]interface{})["to_port"].(int32))
frules[index] = *vpc.NewFirewallRule(rule.(map[string]interface{})["cidr_block"].(string), int32(rule.(map[string]interface{})["from_port"].(int)), rule.(map[string]interface{})["protocol"].(string), int32(rule.(map[string]interface{})["to_port"].(int)))
}
body.SetFirewallRules(frules)

Expand Down

0 comments on commit 3bd8726

Please sign in to comment.