mirror of https://github.com/apache/cloudstack.git
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:
parent
41f6585754
commit
06fd21bd44
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue