diff --git a/lib/fog/aws/ec2.rb b/lib/fog/aws/ec2.rb index 66912f8a1..36e82c9cb 100644 --- a/lib/fog/aws/ec2.rb +++ b/lib/fog/aws/ec2.rb @@ -64,7 +64,7 @@ require "#{requests_directory}/disassociate_address" require "#{requests_directory}/get_console_output" # TODO: require "#{requests_directory}/modify_image_attribute" # TODO: require "#{requests_directory}/monitor_instances" -# TODO: require "#{requests_directory}/purchase_reserver_instances_offering" +# TODO: require "#{requests_directory}/purchase_reserved_instances_offering" require "#{requests_directory}/reboot_instances" # TODO: require "#{requests_directory}/register_image" require "#{requests_directory}/release_address" diff --git a/lib/fog/aws/parsers/s3/copy_object.rb b/lib/fog/aws/parsers/s3/copy_object.rb index ce0843d64..333e525aa 100644 --- a/lib/fog/aws/parsers/s3/copy_object.rb +++ b/lib/fog/aws/parsers/s3/copy_object.rb @@ -8,7 +8,7 @@ module Fog def end_element(name) case name when 'ETag' - @response[name] = @value + @response[name] = @value.gsub('"', '') when 'LastModified' @response[name] = Time.parse(@value) end diff --git a/lib/fog/aws/parsers/s3/get_bucket.rb b/lib/fog/aws/parsers/s3/get_bucket.rb index c9ea05da3..4df0fd605 100644 --- a/lib/fog/aws/parsers/s3/get_bucket.rb +++ b/lib/fog/aws/parsers/s3/get_bucket.rb @@ -17,6 +17,8 @@ module Fog @object = { 'Owner' => {} } when 'DisplayName', 'ID' @object['Owner'][name] = @value + when 'ETag' + @object[name] = @value.gsub('"', '') when 'IsTruncated' if @value == 'true' @response['IsTruncated'] = true @@ -31,7 +33,7 @@ module Fog @response['MaxKeys'] = @value.to_i when 'Size' @object['Size'] = @value.to_i - when 'Delimeter', 'ETag', 'Key', 'Name', 'StorageClass' + when 'Delimeter', 'Key', 'Name', 'StorageClass' @object[name] = @value end end