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:
parent
206d5827b7
commit
4622bd5889
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue