class Aws::Plugins::S3GetBucketLocationFix::Handler
def call(context)
def call(context) @handler.call(context).on(200) do |response| xml = MultiXml.parse(context.http_response.body_contents) if xml.key?('LocationConstraint') constraint = xml['LocationConstraint'] response.data[:location_constraint] = case constraint when String then constraint when Hash then constraint['__content__'].to_s when nil then '' end end end end