mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
NotFound changes
* there seems to be a weird condition where sometimes the efs api returns one error, and other times a different error
This commit is contained in:
parent
eb99011251
commit
e2b1c3dc25
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ module Fog
|
||||||
raise Fog::AWS::EFS::IncorrectFileSystemLifeCycleState.slurp(error, match[:message])
|
raise Fog::AWS::EFS::IncorrectFileSystemLifeCycleState.slurp(error, match[:message])
|
||||||
elsif match[:code] == 'FileSystemInUse'
|
elsif match[:code] == 'FileSystemInUse'
|
||||||
raise Fog::AWS::EFS::FileSystemInUse.slurp(error, match[:message])
|
raise Fog::AWS::EFS::FileSystemInUse.slurp(error, match[:message])
|
||||||
elsif match[:code] == 'MountTargetNotFound'
|
elsif match[:code].match(/(FileSystem|MountTarget)NotFound/)
|
||||||
raise Fog::AWS::EFS::NotFound.slurp(error, match[:message])
|
raise Fog::AWS::EFS::NotFound.slurp(error, match[:message])
|
||||||
end
|
end
|
||||||
raise case match[:message]
|
raise case match[:message]
|
||||||
|
|
Loading…
Add table
Reference in a new issue