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

Commit

Permalink
Merge pull request #4729 from obmarg/registry-create-bucket-fixes
Browse files Browse the repository at this point in the history
fix(registry): fix create_bucket s3 compatability
  • Loading branch information
helgi committed Nov 10, 2015
2 parents 7410fb7 + 89027a8 commit 293d657
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion registry/templates/create_bucket
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,22 @@ conn = boto.connect_s3(
{{ if exists "/deis/store/gateway/accessKey" }}
aws_access_key_id='{{ getv "/deis/store/gateway/accessKey" }}',
aws_secret_access_key='{{ getv "/deis/store/gateway/secretKey" }}',
{{end}}
{{ else }}
{{ if exists "/deis/registry/s3accessKey" }}
aws_access_key_id='{{ getv "/deis/registry/s3accessKey" }}',
aws_secret_access_key='{{ getv "/deis/registry/s3secretKey" }}',
{{ end }}
{{ end }}
{{ if exists "/deis/store/gateway/host" }}
host='{{ getv "/deis/store/gateway/host" }}',
port={{ getv "/deis/store/gateway/port" }},
{{ end }}
{{ if exists "/deis/registry/s3bucket" }}
is_secure=True)
{{ else }}
is_secure=False,
calling_format=OrdinaryCallingFormat())
{{ end }}

{{ if exists "/deis/registry/s3bucket" }}
name = '{{ getv "/deis/registry/s3bucket" }}'
Expand Down

0 comments on commit 293d657

Please sign in to comment.