mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Append template unique name for S3 key for template sync.
This commit is contained in:
parent
dc5d2f45e9
commit
8ad517c028
@ -491,6 +491,7 @@ public class DownloadManagerImpl extends ManagerBase implements DownloadManager
|
|||||||
throw new CloudRuntimeException("Unable to download from URL: " + url);
|
throw new CloudRuntimeException("Unable to download from URL: " + url);
|
||||||
}
|
}
|
||||||
DownloadJob dj = new DownloadJob(td, jobId, id, name, format, hvm, accountId, descr, cksum, installPathPrefix, resourceType);
|
DownloadJob dj = new DownloadJob(td, jobId, id, name, format, hvm, accountId, descr, cksum, installPathPrefix, resourceType);
|
||||||
|
dj.setTmpltPath(installPathPrefix);
|
||||||
jobs.put(jobId, dj);
|
jobs.put(jobId, dj);
|
||||||
threadPool.execute(td);
|
threadPool.execute(td);
|
||||||
|
|
||||||
@ -665,6 +666,9 @@ public class DownloadManagerImpl extends ManagerBase implements DownloadManager
|
|||||||
} else {
|
} else {
|
||||||
installPathPrefix = resource.getRootDir(cmd) + File.separator + installPathPrefix;
|
installPathPrefix = resource.getRootDir(cmd) + File.separator + installPathPrefix;
|
||||||
}
|
}
|
||||||
|
} else if (dstore instanceof S3TO ){
|
||||||
|
// S3 key has template name inside to help template sync
|
||||||
|
installPathPrefix = installPathPrefix + File.separator + cmd.getName();
|
||||||
}
|
}
|
||||||
String user = null;
|
String user = null;
|
||||||
String password = null;
|
String password = null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user