mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
cleaning up model
This commit is contained in:
parent
3344488d11
commit
72328beb43
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ module Fog
|
|||
#requires :availability_zones
|
||||
if (availability_zones || subnet_ids)
|
||||
connection.create_load_balancer(availability_zones, id, listeners.map{|l| l.to_params}) if availability_zones
|
||||
connection.create_load_balancer(nil, id, listeners.map{|l| l.to_params}, scheme, {:subnet_ids => subnet_ids, :security_groups => security_groups}) if subnet_ids && !availability_zones
|
||||
connection.create_load_balancer(nil, id, listeners.map{|l| l.to_params}, {:subnet_ids => subnet_ids, :security_groups => security_groups, :scheme => scheme}) if subnet_ids && !availability_zones
|
||||
else
|
||||
throw Fog::Errors::Error.new("No availability zones or subnet ids specified")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue