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
This commit is contained in:
Likitha Shetty 2013-02-11 14:20:35 -08:00 committed by Prachi Damle
parent 41f6585754
commit 06fd21bd44
1 changed files with 5 additions and 0 deletions

View File

@ -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();