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:
commit
a8c0de9eb6
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue