Skip to content

Commit f2dfd10

Browse files
committed
Update S3 image store URL format to use 's3://' scheme
1 parent e971019 commit f2dfd10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/src/main/java/org/apache/cloudstack/api/command/admin/storage/AddImageStoreS3CMD.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public void execute() throws ResourceUnavailableException, InsufficientCapacityE
131131
dm.put(ApiConstants.S3_USE_TCP_KEEPALIVE, getUseTCPKeepAlive().toString());
132132
}
133133

134-
String url = getEndPoint() + "/" + getBucketName();
134+
String url = "s3://" + getEndPoint().replaceFirst("^https?://", "") + "/" + getBucketName();
135135
try{
136136
ImageStore result = _storageService.discoverImageStore(null, url, "S3", zoneId, dm);
137137
ImageStoreResponse storeResponse;

0 commit comments

Comments
 (0)