diff --git a/lib/fog/aws/beanstalk.rb b/lib/fog/aws/beanstalk.rb index 34d6faa56..a0de5ae8a 100644 --- a/lib/fog/aws/beanstalk.rb +++ b/lib/fog/aws/beanstalk.rb @@ -109,15 +109,15 @@ module Fog ) begin - response = @connection.request({ - :body => body, - :expects => 200, - :headers => { 'Content-Type' => 'application/x-www-form-urlencoded' }, - :idempotent => idempotent, - :host => @host, - :method => 'POST', - :parser => parser - }) + @connection.request({ + :body => body, + :expects => 200, + :headers => { 'Content-Type' => 'application/x-www-form-urlencoded' }, + :idempotent => idempotent, + :host => @host, + :method => 'POST', + :parser => parser + }) rescue Excon::Errors::HTTPStatusError => error if match = error.response.body.match(/(.*)<\/Code>[ \t\n]*(.*)<\/Message>/) raise case match[1].split('.').last