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:
parent
6941fc6dfe
commit
74c8566099
1 changed files with 2 additions and 0 deletions
|
@ -62,6 +62,8 @@ module Fog
|
|||
@data[:tags][key] ||= {}
|
||||
@data[:tags][key][value] ||= []
|
||||
@data[:tags][key][value] = @data[:tags][key][value] & tagged
|
||||
|
||||
tagged.each {|resource| @data[:"#{resource['resourceType']}s"][resource['resourceId']]['tagSet'][key] = value}
|
||||
end
|
||||
|
||||
response = Excon::Response.new
|
||||
|
|
Loading…
Add table
Reference in a new issue