1
0
Fork 0
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:
Joshua Lane 2016-12-15 12:01:50 -08:00
parent 438f0c916f
commit 2937ab1ef4

View file

@ -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