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
1 changed files with 8 additions and 0 deletions

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