Skip to content

Commit a504c00

Browse files
author
Marcus Sorensen
committed
CLOUDSTACK-4887: Fix CLVM template download from storage refactoring work
1 parent ec3302a commit a504c00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/com/cloud/storage/resource/StorageSubsystemCommandHandlerBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected Answer execute(CopyCommand cmd) {
6868
DataStoreTO srcDataStore = srcData.getDataStore();
6969
DataStoreTO destDataStore = destData.getDataStore();
7070

71-
if ((srcData.getObjectType() == DataObjectType.TEMPLATE) && (destData.getObjectType() == DataObjectType.TEMPLATE && destData.getDataStore().getRole() == DataStoreRole.Primary)) {
71+
if (srcData.getObjectType() == DataObjectType.TEMPLATE && srcData.getDataStore().getRole() == DataStoreRole.Image && destData.getDataStore().getRole() == DataStoreRole.Primary) {
7272
//copy template to primary storage
7373
return processor.copyTemplateToPrimaryStorage(cmd);
7474
} else if (srcData.getObjectType() == DataObjectType.TEMPLATE && srcDataStore.getRole() == DataStoreRole.Primary && destDataStore.getRole() == DataStoreRole.Primary) {

0 commit comments

Comments
 (0)