Skip to content

Commit efa861c

Browse files
committed
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>
1 parent b0e0698 commit efa861c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

engine/storage/image/src/org/apache/cloudstack/storage/image/TemplateServiceImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ public void handleTemplateSync(DataStore store) {
318318
} else {
319319
tmpltStore.setDownloadPercent(100);
320320
tmpltStore.setDownloadState(Status.DOWNLOADED);
321+
tmpltStore.setState(ObjectInDataStoreStateMachine.State.Ready);
321322
tmpltStore.setInstallPath(tmpltInfo.getInstallPath());
322323
tmpltStore.setSize(tmpltInfo.getSize());
323324
tmpltStore.setPhysicalSize(tmpltInfo.getPhysicalSize());

0 commit comments

Comments
 (0)