Skip to content

Commit 293d657

Browse files
committed
Merge pull request #4729 from obmarg/registry-create-bucket-fixes
fix(registry): fix create_bucket s3 compatability
2 parents 7410fb7 + 89027a8 commit 293d657

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

registry/templates/create_bucket

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,22 @@ conn = boto.connect_s3(
88
{{ if exists "/deis/store/gateway/accessKey" }}
99
aws_access_key_id='{{ getv "/deis/store/gateway/accessKey" }}',
1010
aws_secret_access_key='{{ getv "/deis/store/gateway/secretKey" }}',
11-
{{end}}
11+
{{ else }}
12+
{{ if exists "/deis/registry/s3accessKey" }}
13+
aws_access_key_id='{{ getv "/deis/registry/s3accessKey" }}',
14+
aws_secret_access_key='{{ getv "/deis/registry/s3secretKey" }}',
15+
{{ end }}
16+
{{ end }}
1217
{{ if exists "/deis/store/gateway/host" }}
1318
host='{{ getv "/deis/store/gateway/host" }}',
1419
port={{ getv "/deis/store/gateway/port" }},
1520
{{ end }}
21+
{{ if exists "/deis/registry/s3bucket" }}
22+
is_secure=True)
23+
{{ else }}
1624
is_secure=False,
1725
calling_format=OrdinaryCallingFormat())
26+
{{ end }}
1827

1928
{{ if exists "/deis/registry/s3bucket" }}
2029
name = '{{ getv "/deis/registry/s3bucket" }}'

0 commit comments

Comments
 (0)