Updated Branches: refs/heads/quickcloud 894375ea2 -> 841a8570e
QuickCloud: Remove reference to unused code Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/f28d788a Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f28d788a Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f28d788a Branch: refs/heads/quickcloud Commit: f28d788a99dccb8cd33183d27673125d4bbba3d9 Parents: 894375e Author: Chiradeep Vittal <chirad...@apache.org> Authored: Mon Mar 25 12:13:51 2013 -0700 Committer: Chiradeep Vittal <chirad...@apache.org> Committed: Mon Mar 25 12:13:51 2013 -0700 ---------------------------------------------------------------------- .../cloud/api/commands/DestroyConsoleProxyCmd.java | 12 ++---------- 1 files changed, 2 insertions(+), 10 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f28d788a/api/src/com/cloud/api/commands/DestroyConsoleProxyCmd.java ---------------------------------------------------------------------- diff --git a/api/src/com/cloud/api/commands/DestroyConsoleProxyCmd.java b/api/src/com/cloud/api/commands/DestroyConsoleProxyCmd.java index 829283e..f3210ce 100644 --- a/api/src/com/cloud/api/commands/DestroyConsoleProxyCmd.java +++ b/api/src/com/cloud/api/commands/DestroyConsoleProxyCmd.java @@ -17,14 +17,12 @@ package com.cloud.api.commands; import org.apache.cloudstack.api.ApiConstants; -import org.apache.cloudstack.api.ApiErrorCode; import org.apache.cloudstack.api.BaseAsyncCmd; import org.apache.cloudstack.api.Parameter; -import org.apache.cloudstack.api.ServerApiException; -import org.apache.cloudstack.api.response.SuccessResponse; import org.apache.log4j.Logger; import com.cloud.event.EventTypes; +import com.cloud.exception.UnsupportedServiceException; import com.cloud.user.Account; import com.cloud.user.UserContext; @@ -82,12 +80,6 @@ public class DestroyConsoleProxyCmd extends BaseAsyncCmd { @Override public void execute(){ - boolean result = _consoleProxyService.destroyConsoleProxy(this); - if (result) { - SuccessResponse response = new SuccessResponse(getCommandName()); - this.setResponseObject(response); - } else { - throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to destroy console proxy"); - } + throw new UnsupportedServiceException("Use destroySystemVm API instead"); } }