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

[vsphere] ensure reload works correctly for server

This commit is contained in:
Ohad Levy 2012-11-15 09:02:40 +02:00 committed by Ohad Levy
parent 397b015257
commit 825ff12119

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