mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-4287
Builtin template Ready Status is No even after the Status is downlaod complete. The reason was that template sync updates only the template download state but not the state. Fixing that. Ideally we should change the state through state machine only. Signed off by : nitin mehta<nitin.mehta@citrix.com>
This commit is contained in:
parent
b0e06981c1
commit
efa861cd5c
|
|
@ -318,6 +318,7 @@ public class TemplateServiceImpl implements TemplateService {
|
|||
} else {
|
||||
tmpltStore.setDownloadPercent(100);
|
||||
tmpltStore.setDownloadState(Status.DOWNLOADED);
|
||||
tmpltStore.setState(ObjectInDataStoreStateMachine.State.Ready);
|
||||
tmpltStore.setInstallPath(tmpltInfo.getInstallPath());
|
||||
tmpltStore.setSize(tmpltInfo.getSize());
|
||||
tmpltStore.setPhysicalSize(tmpltInfo.getPhysicalSize());
|
||||
|
|
|
|||
Loading…
Reference in New Issue