Fix ExtractVolume bug in generating URL.

This commit is contained in:
Min Chen 2013-05-15 18:53:22 -07:00
parent 7ffb6d8464
commit d5050d3157
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ public class UploadMonitorImpl extends ManagerBase implements UploadMonitor {
throw new CloudRuntimeException(errorString);
}
CreateEntityDownloadURLCommand cmd = new CreateEntityDownloadURLCommand(((ImageStoreVO)secStore).getParent(), path, uuid);
CreateEntityDownloadURLCommand cmd = new CreateEntityDownloadURLCommand(((ImageStoreEntity)secStore).getMountPoint(), path, uuid);
Answer ans = ep.sendMessage(cmd);
if (ans == null || !ans.getResult()) {
errorString = "Unable to create a link for " +type+ " id:"+entityId + "," + ans.getDetails();