From dad27aaf40607da75a39cd9854c1681e2395b0d3 Mon Sep 17 00:00:00 2001 From: Chris Suich Date: Fri, 11 Oct 2013 15:14:43 -0400 Subject: [PATCH] Fixed bug with snapshotting failing as 'not implemented' Signed-off-by: Edison Su --- .../storage/resource/StorageSubsystemCommandHandlerBase.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/com/cloud/storage/resource/StorageSubsystemCommandHandlerBase.java b/core/src/com/cloud/storage/resource/StorageSubsystemCommandHandlerBase.java index 3ac82e3eeb1..b43722a6418 100644 --- a/core/src/com/cloud/storage/resource/StorageSubsystemCommandHandlerBase.java +++ b/core/src/com/cloud/storage/resource/StorageSubsystemCommandHandlerBase.java @@ -34,7 +34,6 @@ import com.cloud.agent.api.to.DataObjectType; import com.cloud.agent.api.to.DataStoreTO; import com.cloud.agent.api.to.DataTO; import com.cloud.agent.api.to.DiskTO; -import com.cloud.agent.api.to.NfsTO; import com.cloud.storage.DataStoreRole; import com.cloud.storage.Volume; @@ -84,7 +83,7 @@ public class StorageSubsystemCommandHandlerBase implements StorageSubsystemComma return processor.createTemplateFromVolume(cmd); } } else if (srcData.getObjectType() == DataObjectType.SNAPSHOT && destData.getObjectType() == DataObjectType.SNAPSHOT && - destData.getDataStore().getRole() == DataStoreRole.Primary) { + srcData.getDataStore().getRole() == DataStoreRole.Primary) { return processor.backupSnapshot(cmd); } else if (srcData.getObjectType() == DataObjectType.SNAPSHOT && destData.getObjectType() == DataObjectType.VOLUME) { return processor.createVolumeFromSnapshot(cmd);