1
0
Fork 0
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:
Eugene Howe 2016-10-11 08:49:54 -04:00
parent eb99011251
commit e2b1c3dc25

View file

@ -159,7 +159,7 @@ module Fog
raise Fog::AWS::EFS::IncorrectFileSystemLifeCycleState.slurp(error, match[:message])
elsif match[:code] == 'FileSystemInUse'
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])
end
raise case match[:message]