Skip to content

Commit

Permalink
Change timeout type to int
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff DeCola (jeff-VirtualBox) committed Oct 6, 2016
1 parent 6d683a2 commit 1b64d83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/marathon-resource/actions/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (

//Params holds the values supported in by the concourse `params` array
type Params struct {
AppJSON string `json:"app_json"`
TimeOut time.Duration `json:"time_out"`
Replacements []Metadata `json:"replacements"`
AppJSON string `json:"app_json"`
TimeOut int `json:"time_out"`
Replacements []Metadata `json:"replacements"`
}

//Source holds the values supported in by the concourse `source` array
Expand Down Expand Up @@ -71,7 +71,7 @@ func Out(input InputJSON, appJSONPath string, apiclient marathon.Marathoner) (IO
return IOOutput{}, err
}

timer := time.NewTimer(input.Params.TimeOut * time.Second)
timer := time.NewTimer(time.Duration(input.Params.TimeOut) * time.Second)
deploying := true

// Check if APP was deployed.
Expand Down

0 comments on commit 1b64d83

Please sign in to comment.