1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

fix typo in ec2, strip quotes from s3 etag results

This commit is contained in:
Wesley Beary 2009-08-02 15:21:55 -07:00
parent e443caf24e
commit ec9bded06a
3 changed files with 5 additions and 3 deletions

View file

@ -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"

View file

@ -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

View file

@ -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