Project

General

Profile

Bug #361 ยป 0001-Fixes-bug-361-Omit-environment-attribute-in-Host-inf.patch

Proposed patch - Jochen Schalanda, 07/31/2010 01:04 PM

View differences:

app/models/host.rb
param["puppetmaster"] = puppetmaster
param["domainname"] = domain.fullname unless domain.nil? or domain.fullname.nil?
param.update self.params
return Hash['classes' => self.puppetclasses_names, 'parameters' => param, 'environment' => environment.to_s]
info_hash = {}
info_hash['classes'] = self.puppetclasses_names
info_hash['parameters'] = param
info_hash['environment'] = environment.to_s unless environment.nil? or environment.name.nil?
return info_hash
end
def params
    (1-1/1)