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
97b16d08d2
commit
ebe7af8f94
1 changed files with 2 additions and 14 deletions
|
@ -109,20 +109,8 @@ module Fog
|
|||
:method => 'POST',
|
||||
:parser => parser
|
||||
})
|
||||
rescue Excon::Errors::HTTPStatusError => error
|
||||
if match = error.message.match(/<Code>(.*)<\/Code>[\s\\\w]+<Message>(.*)<\/Message>/m)
|
||||
# case match[1].split('.').last
|
||||
# when 'DBInstanceNotFound', 'DBParameterGroupNotFound', 'DBSnapshotNotFound', 'DBSecurityGroupNotFound'
|
||||
# raise Fog::AWS::RDS::NotFound.slurp(error, match[2])
|
||||
# when 'DBParameterGroupAlreadyExists'
|
||||
# raise Fog::AWS::RDS::IdentifierTaken.slurp(error, match[2])
|
||||
# else
|
||||
# raise
|
||||
# end
|
||||
rescue Excon::Errors::HTTPStatusError
|
||||
raise
|
||||
else
|
||||
raise
|
||||
end
|
||||
end
|
||||
|
||||
response
|
||||
|
|
Loading…
Reference in a new issue