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

[compute|aws] Fix bug in tag mocking preventing servers from being updated with new tags

This commit is contained in:
Matt Griffin 2011-09-06 11:21:32 -04:00
parent 93a52e2c02
commit 5385dbcef8

View file

@ -63,7 +63,7 @@ module Fog
tags.each do |key, value|
self.data[:tags][key] ||= {}
self.data[:tags][key][value] ||= []
self.data[:tags][key][value] = self.data[:tags][key][value] & tagged
self.data[:tags][key][value] |= tagged
tagged.each {|resource| self.data[:"#{resource['resourceType']}s"][resource['resourceId']]['tagSet'][key] = value}
end