mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
fix creating tags with #create_auto_scaling_group
This commit is contained in:
parent
438f0c916f
commit
2937ab1ef4
1 changed files with 2 additions and 4 deletions
|
@ -72,11 +72,9 @@ module Fog
|
|||
end
|
||||
|
||||
if tags = options.delete('Tags')
|
||||
tags.each_with_index do |(key, value), i|
|
||||
options["Tags.member.#{i+1}.Key"] = key.to_s # turns symbol into string
|
||||
options["Tags.member.#{i+1}.Value"] = value
|
||||
end
|
||||
options.merge!(AWS.indexed_param("Tags.member.%d", [*tags]))
|
||||
end
|
||||
|
||||
if termination_policies = options.delete('TerminationPolicies')
|
||||
options.merge!(AWS.indexed_param('TerminationPolicies.member.%d', [*termination_policies]))
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue