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/master to a7c91fe
Date Wed, 11 Sep 2013 08:06:56 GMT
Updated Branches:
  refs/heads/master 58d1e6fd5 -> a7c91fea6


add error message for ResourceAllocationException in DeployVMCmd.java
(cherry picked from commit e74d8a1d14c470baeb160bf1454636ca7dac7564)


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

Branch: refs/heads/master
Commit: a7c91fea674309f88add5d0f4b991900598d30c8
Parents: 58d1e6f
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:48 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/a7c91fea/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 c7bc587..8a6cea7 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
@@ -528,6 +528,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