Skip to content

Commit 7677a2b

Browse files
bug 10112: generarting the right url for corresponding hypervisors for extract template.
status 10112: resolved fixed
1 parent 4120a07 commit 7677a2b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/com/cloud/storage/upload/UploadMonitorImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public UploadVO createEntityDownloadURL(VMTemplateVO template, VMTemplateHostVO
228228
_uploadDao.persist(uploadTemplateObj);
229229
try{
230230
// Create Symlink at ssvm
231-
String uuid = UUID.randomUUID().toString() + ".vhd";
231+
String uuid = UUID.randomUUID().toString() + "." + template.getFormat().toString().toLowerCase();
232232
CreateEntityDownloadURLCommand cmd = new CreateEntityDownloadURLCommand(storageServers.get(0).getParent(), vmTemplateHost.getInstallPath(), uuid);
233233
long result = send(use_ssvm.getId(), cmd, null);
234234
if (result == -1){

0 commit comments

Comments
 (0)