Skip to content

Commit 2f62947

Browse files
committed
Update S3 image store protocol to use 's3' instead of dynamic HTTP/HTTPS
1 parent f2dfd10 commit 2f62947

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

plugins/storage/image/s3/src/main/java/org/apache/cloudstack/storage/datastore/lifecycle/S3ImageStoreLifeCycleImpl.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,7 @@ public DataStore initialize(Map<String, Object> dsInfos) {
8686
imageStoreParameters.put("name", name);
8787
imageStoreParameters.put("zoneId", dcId);
8888
imageStoreParameters.put("url", url);
89-
String protocol = "http";
90-
String useHttps = details.get(ApiConstants.S3_HTTPS_FLAG);
91-
if (useHttps != null && Boolean.parseBoolean(useHttps)) {
92-
protocol = "https";
93-
}
94-
imageStoreParameters.put("protocol", protocol);
89+
imageStoreParameters.put("protocol", "s3");
9590
if (scope != null) {
9691
imageStoreParameters.put("scope", scope);
9792
} else {

0 commit comments

Comments
 (0)