From 39ce3c97f3ea3739b1b9be859ec0e077f9d74d68 Mon Sep 17 00:00:00 2001 From: Jacob Vorreuter Date: Tue, 22 Feb 2011 19:54:00 -0800 Subject: [PATCH 1/2] pull IAM cert upload result from response --- lib/iam/iam.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/iam/iam.rb b/lib/iam/iam.rb index 3d69b47..3e52c7f 100644 --- a/lib/iam/iam.rb +++ b/lib/iam/iam.rb @@ -106,7 +106,7 @@ def upload_server_certificate(name, public_key, private_key, options={}) p params - resp = do_request("UploadServerCertificate", params, :pull_out_array=>[:list_server_certificates_result, :server_certificate_metadata_list]) + resp = do_request("UploadServerCertificate", params, :pull_out_array=>[:upload_server_certificate_result, :server_certificate_metadata]) rescue Exception @@ -117,4 +117,4 @@ def upload_server_certificate(name, public_key, private_key, options={}) end -end \ No newline at end of file +end From ddfbea5ce56e4efbb4c86383bf4efc25e8c2410c Mon Sep 17 00:00:00 2001 From: Jacob Vorreuter Date: Tue, 22 Feb 2011 20:17:52 -0800 Subject: [PATCH 2/2] include SSLCertificateId in CreateLoadBalancer request --- lib/elb/elb_interface.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/elb/elb_interface.rb b/lib/elb/elb_interface.rb index d11c97f..00078dd 100644 --- a/lib/elb/elb_interface.rb +++ b/lib/elb/elb_interface.rb @@ -95,6 +95,7 @@ def create_load_balancer(name, availability_zones, listeners) params["Listeners.member.#{i}.Protocol"] = "#{l[:protocol]}" params["Listeners.member.#{i}.LoadBalancerPort"] = "#{l[:load_balancer_port]}" params["Listeners.member.#{i}.InstancePort"] = "#{l[:instance_port]}" + params["Listeners.member.#{i}.SSLCertificateId"] = "#{l[:ssl_certificate_id]}" i += 1 end params['LoadBalancerName'] = name @@ -363,4 +364,4 @@ def reset end -end \ No newline at end of file +end