cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From weiz...@apache.org
Subject git commit: updated refs/heads/4.2-forward to e74d8a1
Date Wed, 11 Sep 2013 08:06:18 GMT
Updated Branches:
  refs/heads/4.2-forward 17a186557 -> e74d8a1d1


add error message for ResourceAllocationException in DeployVMCmd.java


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/e74d8a1d
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e74d8a1d
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e74d8a1d

Branch: refs/heads/4.2-forward
Commit: e74d8a1d14c470baeb160bf1454636ca7dac7564
Parents: 17a1865
Author: Wei Zhou <w.zhou@leaseweb.com>
Authored: Wed Sep 11 10:06:03 2013 +0200
Committer: Wei Zhou <w.zhou@leaseweb.com>
Committed: Wed Sep 11 10:06:03 2013 +0200

----------------------------------------------------------------------
 .../org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java    | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e74d8a1d/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java b/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java
index 63198a4..6f78dd4 100755
--- a/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java
+++ b/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java
@@ -527,6 +527,9 @@ public class DeployVMCmd extends BaseAsyncCreateCmd {
         }  catch (ConcurrentOperationException ex) {
             s_logger.warn("Exception: ", ex);
             throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, ex.getMessage());
+        } catch (ResourceAllocationException ex) {
+            s_logger.warn("Exception: ", ex);
+            throw new ServerApiException(ApiErrorCode.RESOURCE_ALLOCATION_ERROR, ex.getMessage());
         }
     }
 


Mime
View raw message