incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mc...@apache.org
Subject [46/50] [abbrv] git commit: refs/heads/vim51_win8 - CLOUDSTACK-1126: [EC2 Query API] RunInstances ignores the UserData input parameter
Date Wed, 13 Feb 2013 01:07:00 GMT
CLOUDSTACK-1126: [EC2 Query API] RunInstances ignores the UserData input parameter

When EC2RunInstances is called with UserData parameter, the parameter is not propogated to
CS


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

Branch: refs/heads/vim51_win8
Commit: 06fd21bd4498479c52bcf12921bf867190ace3a1
Parents: 41f6585
Author: Likitha Shetty <Likitha.Shetty@citrix.com>
Authored: Mon Feb 11 14:20:35 2013 -0800
Committer: Prachi Damle <prachi@cloud.com>
Committed: Mon Feb 11 14:20:40 2013 -0800

----------------------------------------------------------------------
 .../com/cloud/bridge/service/EC2RestServlet.java   |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/06fd21bd/awsapi/src/com/cloud/bridge/service/EC2RestServlet.java
----------------------------------------------------------------------
diff --git a/awsapi/src/com/cloud/bridge/service/EC2RestServlet.java b/awsapi/src/com/cloud/bridge/service/EC2RestServlet.java
index 5788b35..5d151ba 100644
--- a/awsapi/src/com/cloud/bridge/service/EC2RestServlet.java
+++ b/awsapi/src/com/cloud/bridge/service/EC2RestServlet.java
@@ -1169,6 +1169,11 @@ public class EC2RestServlet extends HttpServlet {
             EC2request.setKeyName(keyName[0]);
         }
 
+        String[] userData = request.getParameterValues("UserData");
+        if ( userData != null) {
+            EC2request.setUserData( userData[0]);
+        }
+
         Enumeration<?> names = request.getParameterNames();
         while( names.hasMoreElements()) {
             String key = (String)names.nextElement();


Mime
View raw message