[
https://issues.apache.org/jira/browse/CLOUDSTACK-5863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14711095#comment-14711095
]
ASF GitHub Bot commented on CLOUDSTACK-5863:
--------------------------------------------
Github user bhaisaab commented on a diff in the pull request:
https://github.com/apache/cloudstack/pull/732#discussion_r37854560
--- Diff:
api/src/org/apache/cloudstack/api/command/user/snapshot/RevertSnapshotCmd.java
---
@@ -31,25 +31,36 @@
import org.apache.cloudstack.api.response.SnapshotResponse;
import org.apache.cloudstack.api.response.SuccessResponse;
import org.apache.cloudstack.context.CallContext;
+import org.apache.log4j.Logger;
import com.cloud.event.EventTypes;
import com.cloud.storage.Snapshot;
import com.cloud.user.Account;
-@APICommand(name = "revertSnapshot", description = "revert a volume
snapshot.", responseObject = SnapshotResponse.class, entityType =
{Snapshot.class},
+@APICommand(name = "revertSnapshot", description = "revert a volume
snapshot.", responseObject = SuccessResponse.class, entityType =
{Snapshot.class},
--- End diff --
I think for API backward compatibility, please revert this to send
SnapshotResponse as the responseobject, unless this really needs to be fixed
(the older implementation got it wrong). Please comment.
> Restore volume snapshot
> -----------------------
>
> Key: CLOUDSTACK-5863
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5863
> Project: CloudStack
> Issue Type: New Feature
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Snapshot
> Environment: KVM, EL6, QCOW2
> Reporter: Nux
> Assignee: Wei Zhou
> Labels: backup, kvm, restore, snapshot, volumes
> Fix For: 4.6.0
>
>
> Hello,
> Just as users can create backups of volumes, they should be able to restore
> said volumes from them.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)