Project

General

Profile

« Previous | Next » 

Revision f00eaf07

Added by Ohad Levy almost 12 years ago

  • ID f00eaf0746492189359177eb7a3664a21b79b70f

fixes #1586 -Root password inheritance doesn't seem to work properly

View differences:

app/models/hostgroup.rb
write_attribute :vm_defaults, v.to_yaml
end
# no need to store anything in the db if the password is our default
def root_pass
read_attribute(:root_pass) || nested_root_pw
end
private
def nested_root_pw
ancestors.each do |a|
return a.root_pass unless a.root_pass.blank?
end
nil
end
def serialize_vm_attributes
hash = {}
Vm::PROPERTIES.each do |attr|

Also available in: Unified diff