Project

General

Profile

« Previous | Next » 

Revision 03118084

Added by Stephen Benjamin about 10 years ago

fixes #5450 - add realm to params for 1.4-compatible use in templates

(cherry picked from commit 77d9d699b32e735e4b70195e978de108a992d3f5)

View differences:

app/models/host/managed.rb
# maybe these should be moved to the common parameters, leaving them in for now
param["puppetmaster"] = puppetmaster
param["domainname"] = domain.fullname unless domain.nil? or domain.fullname.nil?
param["realm"] = realm.name unless realm.nil?
param["hostgroup"] = hostgroup.to_label unless hostgroup.nil?
if SETTINGS[:locations_enabled]
param["location"] = location.name unless location.blank?

Also available in: Unified diff