kopia lustrzana https://github.com/gaul/s3proxy
Do not eagerly initialize BlobStore
This prevents OpenStack blobstores from matching regions incorrectly, basing on a value of the endpoint variable. OVH has different URLs for each storage endpoint, which does not match the auth endpoint.pull/296/head
rodzic
52fcf4a868
commit
c88072b8ef
|
@ -310,11 +310,13 @@ public final class Main {
|
||||||
}
|
}
|
||||||
|
|
||||||
BlobStoreContext context = builder.build(BlobStoreContext.class);
|
BlobStoreContext context = builder.build(BlobStoreContext.class);
|
||||||
BlobStore blobStore = context.getBlobStore();
|
BlobStore blobStore;
|
||||||
if (context instanceof RegionScopedBlobStoreContext &&
|
if (context instanceof RegionScopedBlobStoreContext &&
|
||||||
region != null) {
|
region != null) {
|
||||||
blobStore = ((RegionScopedBlobStoreContext) context)
|
blobStore = ((RegionScopedBlobStoreContext) context)
|
||||||
.getBlobStore(region);
|
.getBlobStore(region);
|
||||||
|
} else {
|
||||||
|
blobStore = context.getBlobStore();
|
||||||
}
|
}
|
||||||
return blobStore;
|
return blobStore;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue