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

Commit

Permalink
fix(builder): send nil to controller, not 'False'
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Fisher committed Dec 8, 2014
1 parent d8b8343 commit 1e8c17b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions builder/bin/generate-buildhook.go
Expand Up @@ -4,7 +4,6 @@ import (
"encoding/json"
"fmt"
"os"
"strconv"

"github.com/deis/deis/builder"
)
Expand All @@ -29,8 +28,10 @@ func main() {
var procfile builder.ProcessType
assert(json.Unmarshal([]byte(os.Args[5]), &procfile))

dockerfile, err := strconv.ParseBool(os.Args[6])
assert(err)
var dockerfile string = os.Args[6]
if dockerfile == "false" {
dockerfile = ""
}

buildHook := builder.BuildHook{
Sha: os.Args[1],
Expand Down
2 changes: 1 addition & 1 deletion builder/types.go
Expand Up @@ -27,7 +27,7 @@ type BuildHook struct {
ReceiveRepo string `json:"receive_repo"`
Image string `json:"image"`
Procfile ProcessType `json:"procfile"`
Dockerfile bool `json:"dockerfile"`
Dockerfile string `json:"dockerfile"`
}

// BuildHookResponse represents a controller's build-hook response object.
Expand Down

0 comments on commit 1e8c17b

Please sign in to comment.