You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by mc...@apache.org on 2013/02/13 02:07:00 UTC

[46/50] [abbrv] git commit: refs/heads/vim51_win8 - CLOUDSTACK-1126: [EC2 Query API] RunInstances ignores the UserData input parameter

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 <Li...@citrix.com>
Authored: Mon Feb 11 14:20:35 2013 -0800
Committer: Prachi Damle <pr...@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();