Commit 067e622 1 parent 0d3081b commit 067e622 Copy full SHA for 067e622
File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,18 @@ func main() {
37
37
log .Fatal (err )
38
38
} else {
39
39
os .Setenv ("REGISTRY_STORAGE_S3_ACCESSKEY" , string (accesskey ))
40
- os .Setenv ("AWS_ACCESS_KEY_ID" , string (accesskey ))
40
+ if len (accesskey ) != 0 {
41
+ os .Setenv ("AWS_ACCESS_KEY_ID" , string (accesskey ))
42
+ }
41
43
}
42
44
43
45
if secretkey , err := ioutil .ReadFile ("/var/run/secrets/deis/registry/creds/secretkey" ); err != nil {
44
46
log .Fatal (err )
45
47
} else {
46
48
os .Setenv ("REGISTRY_STORAGE_S3_SECRETKEY" , string (secretkey ))
47
- os .Setenv ("AWS_SECRET_ACCESS_KEY" , string (secretkey ))
49
+ if len (secretkey ) != 0 {
50
+ os .Setenv ("AWS_SECRET_ACCESS_KEY" , string (secretkey ))
51
+ }
48
52
}
49
53
50
54
if region , err := ioutil .ReadFile ("/var/run/secrets/deis/registry/creds/region" ); err != nil {
You can’t perform that action at this time.
0 commit comments