Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cihangirbesiktas committed Jul 21, 2017
1 parent b41e24a commit ced334c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
3 changes: 2 additions & 1 deletion marathon/resource_marathon_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,8 @@ func mutateResourceToApplication(d *schema.ResourceData) *marathon.Application {
mapStruct := d.Get("port_definitions.0.port_definition." + strconv.Itoa(i)).(map[string]interface{})

if prop, ok := mapStruct["port"]; ok {
portDefinition.Port = prop.(*int)
prop := prop.(int)
portDefinition.Port = &prop
}

if prop, ok := mapStruct["protocol"]; ok {
Expand Down
11 changes: 0 additions & 11 deletions test/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,6 @@ resource "marathon_app" "app-create-example" {
max_launch_delay_seconds = 3000
ports = [0, 0]

port_definitions {
port_definition {
port = 80
protocol = "tcp"
}
port_definition {
port = 443
protocol = "tcp"
}
}

container {
docker {
image = "python:3"
Expand Down

0 comments on commit ced334c

Please sign in to comment.