Project

General

Profile

« Previous | Next » 

Revision ff61accf

Added by Ohad Levy almost 12 years ago

  • ID ff61accf873d0920258da126caea1ef72e45924b

fixes #1752 - fixes clone from keeping internal data (such as vm external uuid).

View differences:

app/models/orchestration.rb
# we keep the before update host object in order to compare changes
def setup_clone
return if new_record?
@old = clone
@old = dup
for key in (changed_attributes.keys - ["updated_at"])
@old.send "#{key}=", changed_attributes[key]
# At this point the old cached bindings may still be present so we force an AR association reload

Also available in: Unified diff