From 31e08507cbe8444528aaaac2778374eea040709c Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Fri, 18 Jan 2008 22:03:36 +1100 Subject: Removed old configuration file behaviour and deprecation warning - closes ticket #990 --- lib/puppet.rb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/puppet.rb b/lib/puppet.rb index 18037cdc1..2f4d6308f 100644 --- a/lib/puppet.rb +++ b/lib/puppet.rb @@ -205,16 +205,7 @@ module Puppet end # Parse the config file for this process. - def self.parse_config(oldconfig = nil) - # First look for the old configuration file. - oldconfig ||= File.join(Puppet[:confdir], Puppet[:name].to_s + ".conf") - if FileTest.exists?(oldconfig) and Puppet[:name] != "puppet" - Puppet.warning "Individual config files are deprecated; remove %s and use puppet.conf" % oldconfig - Puppet.settings.old_parse(oldconfig) - return - end - - # Now check for the normal config. + def self.parse_config if Puppet[:config] and File.exists? Puppet[:config] Puppet.debug "Parsing %s" % Puppet[:config] Puppet.settings.parse(Puppet[:config]) -- cgit