1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[aws | tags] Add tag to resource data when creating a mock tag

This commit is contained in:
Matt Griffin 2011-03-23 13:24:26 -04:00
parent 6941fc6dfe
commit 74c8566099

View file

@ -62,6 +62,8 @@ module Fog
@data[:tags][key] ||= {} @data[:tags][key] ||= {}
@data[:tags][key][value] ||= [] @data[:tags][key][value] ||= []
@data[:tags][key][value] = @data[:tags][key][value] & tagged @data[:tags][key][value] = @data[:tags][key][value] & tagged
tagged.each {|resource| @data[:"#{resource['resourceType']}s"][resource['resourceId']]['tagSet'][key] = value}
end end
response = Excon::Response.new response = Excon::Response.new