class Aws::Plugins::S3GetBucketLocationFix::Handler

def call(context)

def call(context)
  @handler.call(context).on(200) do |response|
    response.data = Structure.new([:location_constraint])
    xml = context.http_response.body_contents
    matches = xml.match(/>(.+?)<\/LocationConstraint>/)
    response.data[:location_constraint] = matches ? matches[1] : ''
  end
end