Skip to content

Commit 469df26

Browse files
author
Aaron Schlesinger
committed
fix(build.go): change credentials check
if creds was returned nil and the error check at the beginning of the function passed, we’re in a valid code path that includes object storage with no auth
1 parent 3045256 commit 469df26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/gitreceive/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func build(conf *Config, builderKey, gitSha string) error {
138138
}
139139

140140
var srcManifest string
141-
if err == os.ErrNotExist {
141+
if creds == nil {
142142
// both key and secret are missing, proceed with no credentials
143143
if usingDockerfile {
144144
srcManifest = "/etc/deis-dockerbuilder-no-creds.yaml"

0 commit comments

Comments
 (0)