Permalink
Browse files

pass in kernel id

  • Loading branch information...
1 parent eed3e5d commit 3c791d5b0ed862d663d2b27919625ba3ed4f02fd @buzztroll buzztroll committed Jul 11, 2012
@@ -228,7 +228,8 @@ public RunInstancesResponseType handleGet(
@FormParam("InstanceType") String instanceType,
@FormParam("Placement.GroupName") String groupName,
@FormParam("Placement.AvailabilityZone") String availabilityZone,
- @FormParam("ClientToken") String clientToken) {
+ @FormParam("ClientToken") String clientToken,
+ @FormParam("KernelId") String kernelId) {
// only including parameters that are actually used right now
assureRequiredParameter("ImageId", imageId);
@@ -253,6 +254,7 @@ public RunInstancesResponseType handleGet(
request.setPlacement(placement);
}
request.setClientToken(clientToken);
+ request.setKernelId(kernelId);
try {
return serviceRM.runInstances(request);
@@ -273,8 +275,9 @@ public RunInstancesResponseType handlePost(
@FormParam("InstanceType") String instanceType,
@FormParam("Placement.GroupName") String groupName,
@FormParam("Placement.AvailabilityZone") String availabilityZone,
- @FormParam("ClientToken") String clientToken) {
- return handleGet(imageId, minCount, maxCount, keyName, userData, instanceType, groupName, availabilityZone, clientToken);
+ @FormParam("ClientToken") String clientToken,
+ @FormParam("KernelId") String kernelId) {
+ return handleGet(imageId, minCount, maxCount, keyName, userData, instanceType, groupName, availabilityZone, clientToken, kernelId);
}
}

0 comments on commit 3c791d5

Please sign in to comment.