Skip to content

Commit 055763b

Browse files
committed
Merge pull request #4702 from mboersma/hotfix-mac-deis-pull
fix(client): init procfileMap in "deis pull"
2 parents 70bd364 + 79c8f4a commit 055763b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

client/cmd/builds.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func BuildsCreate(appID, image, procfile string) error {
4444
return err
4545
}
4646

47-
var procfileMap *map[string]string
47+
procfileMap := make(map[string]string)
4848

4949
if procfile != "" {
5050
if procfileMap, err = parseProcfile([]byte(procfile)); err != nil {
@@ -63,7 +63,7 @@ func BuildsCreate(appID, image, procfile string) error {
6363

6464
fmt.Print("Creating build... ")
6565
quit := progress()
66-
_, err = builds.New(c, appID, image, *procfileMap)
66+
_, err = builds.New(c, appID, image, procfileMap)
6767
quit <- true
6868
<-quit
6969

@@ -76,7 +76,7 @@ func BuildsCreate(appID, image, procfile string) error {
7676
return nil
7777
}
7878

79-
func parseProcfile(procfile []byte) (*map[string]string, error) {
79+
func parseProcfile(procfile []byte) (map[string]string, error) {
8080
procfileMap := make(map[string]string)
81-
return &procfileMap, yaml.Unmarshal(procfile, &procfileMap)
81+
return procfileMap, yaml.Unmarshal(procfile, &procfileMap)
8282
}

0 commit comments

Comments
 (0)