Revision 8d3012fe
Added by Dominic Cleal about 10 years ago
lib/proxy/puppet/environment.rb | ||
---|---|---|
def classes
|
||
Initializer.load
|
||
conf = ConfigReader.new(Initializer.config).get
|
||
eparser = conf[:master] && conf[:master][:parser] == 'future'
|
||
eparser = (conf[:main] && conf[:main][:parser] == 'future') || (conf[:master] && conf[:master][:parser] == 'future')
|
||
|
||
paths.map {|path| PuppetClass.scan_directory path, eparser}.flatten
|
||
end
|
Also available in: Unified diff
fixes #5522 - future parser can be set in puppet.conf [main]