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

Merge pull request #1278 from ohadlevy/vmware

[vsphere] ensure reload works correctly for server
This commit is contained in:
Ohad Levy 2012-11-26 12:32:17 -08:00
commit a8c0de9eb6

View file

@ -167,6 +167,14 @@ module Fog
id.nil?
end
def reload
# reload does not re-read assoiciated attributes, so we clear it manually
[:interfaces, :volumes].each do |attr|
self.attributes.delete(attr)
end
super
end
private
def defaults