Sha256: c0010ed0ddd57b5e0f8b5767854eaa7974cff9af7e4df70a897703ddf12692bd
Contents?: true
Size: 575 Bytes
Versions: 2
Compression:
Stored size: 575 Bytes
Contents
module Aws module Plugins class S3GetBucketLocationFix < Seahorse::Client::Plugin class Handler < Seahorse::Client::Handler def call(context) @handler.call(context).on_success do |response| xml = MultiXml.parse(response.http_response.body_contents) if constraint = xml['LocationConstraint'] response.data[:location_constraint] = constraint['__content__'].to_s end end end end handler(Handler, priority: 60, operations: [:get_bucket_location]) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aws-sdk-core-2.0.0.rc2 | lib/aws/plugins/s3_get_bucket_location_fix.rb |
aws-sdk-core-2.0.0.rc1 | lib/aws/plugins/s3_get_bucket_location_fix.rb |