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/controllers/hosts_controller.rb
def clone
new = @host.clone
load_vars_for_ajax
new.puppetclasses = @host.puppetclasses
# Clone any parameters as well
@host.host_parameters.each{|param| new.host_parameters << HostParameter.new(:name => param.name, :value => param.value)}
flash[:warning] = "The marked fields will need reviewing"
new.valid?
@host = new

Also available in: Unified diff