mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Pass up all the options that have been assigned
This commit is contained in:
parent
5b808d9cf8
commit
28654213b7
1 changed files with 3 additions and 1 deletions
|
@ -39,7 +39,9 @@ module Fog
|
|||
requires :image_id
|
||||
requires :instance_type
|
||||
|
||||
connection.create_launch_configuration(image_id, instance_type, id) #, listeners.map{|l| l.to_params})
|
||||
options = Hash[self.class.aliases.map { |key, value| [key, send(value)] }]
|
||||
options.delete_if { |key, value| value.nil? }
|
||||
connection.create_launch_configuration(image_id, instance_type, id, options) #, listeners.map{|l| l.to_params})
|
||||
|
||||
# reload instead of merge attributes b/c some attrs (like HealthCheck)
|
||||
# may be set, but only the DNS name is returned in the create_load_balance
|
||||
|
|
Loading…
Add table
Reference in a new issue