1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Fixed error happening when the route_table was nil.

This commit is contained in:
Robert Clark 2013-08-15 10:50:11 -04:00
parent 206d5827b7
commit 4622bd5889

View file

@ -39,10 +39,10 @@ module Fog
'return' => true
}
response
elsif !route_table['associationSet'].empty?
raise Fog::Compute::AWS::Error, "DependencyViolation => The routeTable '#{route_table_id}' has dependencies and cannot be deleted."
elsif route_table.nil?
raise Fog::Compute::AWS::NotFound.new("The routeTable ID '#{route_table_id}' does not exist")
elsif !route_table['associationSet'].empty?
raise Fog::Compute::AWS::Error, "DependencyViolation => The routeTable '#{route_table_id}' has dependencies and cannot be deleted."
end
end
end