Updated Branches: refs/heads/master b6d12f794 -> dad27aaf4
Fixed bug with snapshotting failing as 'not implemented' Signed-off-by: Edison Su <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/dad27aaf Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/dad27aaf Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/dad27aaf Branch: refs/heads/master Commit: dad27aaf40607da75a39cd9854c1681e2395b0d3 Parents: b6d12f7 Author: Chris Suich <[email protected]> Authored: Fri Oct 11 15:14:43 2013 -0400 Committer: Edison Su <[email protected]> Committed: Thu Oct 17 16:58:38 2013 -0700 ---------------------------------------------------------------------- .../storage/resource/StorageSubsystemCommandHandlerBase.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/dad27aaf/core/src/com/cloud/storage/resource/StorageSubsystemCommandHandlerBase.java ---------------------------------------------------------------------- diff --git a/core/src/com/cloud/storage/resource/StorageSubsystemCommandHandlerBase.java b/core/src/com/cloud/storage/resource/StorageSubsystemCommandHandlerBase.java index 3ac82e3..b43722a 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);
