From 5cd4ef28ece94f63bd1ae29142c5006a892fb556 Mon Sep 17 00:00:00 2001 From: Wesley Beary Date: Mon, 13 Jul 2009 20:00:27 -0700 Subject: [PATCH] fixes for failing specs, thank integrity for ci --- lib/fog/aws/parsers/ec2/describe_images.rb | 2 +- lib/fog/aws/parsers/ec2/describe_instances.rb | 2 +- spec/aws/ec2/describe_addresses_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/fog/aws/parsers/ec2/describe_images.rb b/lib/fog/aws/parsers/ec2/describe_images.rb index e684fdc8c..469491eba 100644 --- a/lib/fog/aws/parsers/ec2/describe_images.rb +++ b/lib/fog/aws/parsers/ec2/describe_images.rb @@ -16,7 +16,7 @@ module Fog end @value = '' end - + def end_element(name) case name when 'architecture' diff --git a/lib/fog/aws/parsers/ec2/describe_instances.rb b/lib/fog/aws/parsers/ec2/describe_instances.rb index 27c64f024..9f69c48eb 100644 --- a/lib/fog/aws/parsers/ec2/describe_instances.rb +++ b/lib/fog/aws/parsers/ec2/describe_instances.rb @@ -24,7 +24,7 @@ module Fog @value = '' end - def end_element + def end_element(name) case name when 'amiLaunchIndex' @instance[:ami_launch_index] = @value diff --git a/spec/aws/ec2/describe_addresses_spec.rb b/spec/aws/ec2/describe_addresses_spec.rb index dfbdfce95..7a1ebb25f 100644 --- a/spec/aws/ec2/describe_addresses_spec.rb +++ b/spec/aws/ec2/describe_addresses_spec.rb @@ -13,7 +13,7 @@ describe 'EC2.describe_addresses' do it "should return proper attributes with no params" do actual = ec2.describe_addresses actual.body[:request_id].should be_a(String) - item = actual.body[:addresses].select {|address| address[:public_ip] == @public_ip} + item = actual.body[:address_set].select {|address| address[:public_ip] == @public_ip} item.should_not be_nil end