File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ func main() {
136136 log .Fatal (err )
137137 } else {
138138 os .Setenv ("REGISTRY_STORAGE_SWIFT_CONTAINER" , string (container ))
139+ os .Setenv ("BUCKET_NAME" , string (container ))
139140 }
140141
141142 if authVersion , err := ioutil .ReadFile ("/var/run/secrets/deis/registry/creds/authversion" ); err != nil {
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ elif os.getenv('REGISTRY_STORAGE') == "swift":
5353 tenant_name = os .getenv ('REGISTRY_STORAGE_SWIFT_TENANT' )
5454 )
5555 # swift also does not throw exception if container already exists.
56- conn .put_container (os . getenv ( 'BUCKET_NAME' ) )
56+ conn .put_container (bucket_name )
5757
5858elif os .getenv ('REGISTRY_STORAGE' ) == "s3" and os .getenv ('REGISTRY_STORAGE_S3_BACKEND' ) == 'minio' :
5959 botoconfig .add_section ('s3' )
You can’t perform that action at this time.
0 commit comments