Skip to content

Commit 933c124

Browse files
fix(conf): strip newlines from builder key (#425)
1 parent 392ef7d commit 933c124

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pkg/conf/config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package conf
33
import (
44
"fmt"
55
"io/ioutil"
6+
"strings"
67

78
"github.com/deis/builder/pkg/sys"
89
"github.com/kelseyhightower/envconfig"
@@ -40,7 +41,7 @@ func GetBuilderKey() (string, error) {
4041
if err != nil {
4142
return "", fmt.Errorf("couldn't get builder key from %s (%s)", builderKeyLocation, err)
4243
}
43-
builderKey := string(builderKeyBytes)
44+
builderKey := strings.Trim(string(builderKeyBytes), "\n")
4445
return builderKey, nil
4546
}
4647

0 commit comments

Comments
 (0)