Skip to content

Commit e971019

Browse files
committed
Update S3 image store discovery to include endpoint and bucket name in URL
1 parent f477114 commit e971019

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

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

134+
String url = getEndPoint() + "/" + getBucketName();
134135
try{
135-
ImageStore result = _storageService.discoverImageStore(null, null, "S3", zoneId, dm);
136+
ImageStore result = _storageService.discoverImageStore(null, url, "S3", zoneId, dm);
136137
ImageStoreResponse storeResponse;
137138
if (result != null) {
138139
storeResponse = _responseGenerator.createImageStoreResponse(result);

0 commit comments

Comments
 (0)