Project

General

Profile

« Previous | Next » 

Revision 771129f2

Added by Ohad Levy over 12 years ago

  • ID 771129f2d8604228cd767d1059e3e68621759b0b

adds host description as an ENC parameter refs #1179

View differences:

app/models/host.rb
param["domainname"] = domain.fullname unless domain.nil? or domain.fullname.nil?
param["hostgroup"] = hostgroup.to_label unless hostgroup.nil?
param["root_pw"] = root_pass if SETTINGS[:unattended]
param["comment"] = comment unless comment.blank?
param["foreman_env"] = environment.to_s unless environment.nil? or environment.name.nil?
if SETTINGS[:login]
param["owner_name"] = owner.name

Also available in: Unified diff