Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
necosta committed Jan 8, 2019
1 parent 397c48a commit dc95c9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azurerm/resource_arm_container_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,9 @@ func expandContainerGroupContainers(d *schema.ResourceData) (*[]containerinstanc
}

if v, ok := data["ports"]; ok {
s := v.(*schema.Set)
s := v.([]interface{})
var ports []containerinstance.ContainerPort
for _, v := range s.List() {
for _, v := range s {
portObj := v.(map[string]interface{})
portI := portObj["port"]
port := int32(portI.(int))
Expand Down

0 comments on commit dc95c9e

Please sign in to comment.