mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Remove unused variable
This commit is contained in:
parent
15262af2fb
commit
b8044a9942
1 changed files with 9 additions and 9 deletions
|
@ -109,15 +109,15 @@ module Fog
|
||||||
)
|
)
|
||||||
|
|
||||||
begin
|
begin
|
||||||
response = @connection.request({
|
@connection.request({
|
||||||
:body => body,
|
:body => body,
|
||||||
:expects => 200,
|
:expects => 200,
|
||||||
:headers => { 'Content-Type' => 'application/x-www-form-urlencoded' },
|
:headers => { 'Content-Type' => 'application/x-www-form-urlencoded' },
|
||||||
:idempotent => idempotent,
|
:idempotent => idempotent,
|
||||||
:host => @host,
|
:host => @host,
|
||||||
:method => 'POST',
|
:method => 'POST',
|
||||||
:parser => parser
|
:parser => parser
|
||||||
})
|
})
|
||||||
rescue Excon::Errors::HTTPStatusError => error
|
rescue Excon::Errors::HTTPStatusError => error
|
||||||
if match = error.response.body.match(/<Code>(.*)<\/Code>[ \t\n]*<Message>(.*)<\/Message>/)
|
if match = error.response.body.match(/<Code>(.*)<\/Code>[ \t\n]*<Message>(.*)<\/Message>/)
|
||||||
raise case match[1].split('.').last
|
raise case match[1].split('.').last
|
||||||
|
|
Loading…
Reference in a new issue