Project

General

Profile

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
200 200
    param["puppetmaster"] = puppetmaster
201 201
    param["domainname"] = domain.fullname unless domain.nil? or domain.fullname.nil?
202 202
    param.update self.params
203
    return Hash['classes' => self.puppetclasses_names, 'parameters' => param, 'environment' => environment.to_s]
203

  
204
    info_hash = {}
205
    info_hash['classes'] = self.puppetclasses_names
206
    info_hash['parameters'] = param
207
    info_hash['environment'] = environment.to_s unless environment.nil? or environment.name.nil?
208

  
209
    return info_hash
204 210
  end
205 211

  
206 212
  def params
207
-