From 61f24d8a16450988e37d7f81323042678368ec7b Mon Sep 17 00:00:00 2001 From: Likitha Shetty Date: Thu, 31 Jan 2013 11:49:01 -0800 Subject: [PATCH] [EC2 Query API] RunInstance and DescribeInstances throw NumberFormatException error when called using AWS Java SDK https://reviews.apache.org/r/8483/ AWS Java SDK doesn't expect a string value in the AmiLaunchIndex response element for RunInstances and DescribeInstances response. --- awsapi/src/com/cloud/bridge/service/EC2SoapServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awsapi/src/com/cloud/bridge/service/EC2SoapServiceImpl.java b/awsapi/src/com/cloud/bridge/service/EC2SoapServiceImpl.java index 6ac8c97e666..b2451c6a0cb 100644 --- a/awsapi/src/com/cloud/bridge/service/EC2SoapServiceImpl.java +++ b/awsapi/src/com/cloud/bridge/service/EC2SoapServiceImpl.java @@ -1379,7 +1379,7 @@ public class EC2SoapServiceImpl implements AmazonEC2SkeletonInterface { param7.setDnsName( "" ); param7.setReason( "" ); param7.setKeyName( inst.getKeyPairName()); - param7.setAmiLaunchIndex( "" ); + param7.setAmiLaunchIndex( null ); param7.setInstanceType( inst.getServiceOffering()); ProductCodesSetType param9 = new ProductCodesSetType(); @@ -1701,7 +1701,7 @@ public class EC2SoapServiceImpl implements AmazonEC2SkeletonInterface { param7.setDnsName( "" ); param7.setReason( "" ); param7.setKeyName( inst.getKeyPairName()); - param7.setAmiLaunchIndex( "" ); + param7.setAmiLaunchIndex( null ); ProductCodesSetType param9 = new ProductCodesSetType(); ProductCodesSetItemType param10 = new ProductCodesSetItemType();