diff options
author | James Turnbull <james@lovedthanlost.net> | 2008-01-18 22:03:36 +1100 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2008-01-18 22:03:36 +1100 |
commit | 31e08507cbe8444528aaaac2778374eea040709c (patch) | |
tree | 9c8eb31cf3fed83e6b4b86ac6e574e966a4c2c57 | |
parent | ebe5cc0979b57517f81c84a4d3ee771c12c6a19f (diff) | |
download | puppet-31e08507cbe8444528aaaac2778374eea040709c.tar.gz puppet-31e08507cbe8444528aaaac2778374eea040709c.tar.xz puppet-31e08507cbe8444528aaaac2778374eea040709c.zip |
Removed old configuration file behaviour and deprecation warning - closes ticket #990
-rw-r--r-- | lib/puppet.rb | 11 |
1 files changed, 1 insertions, 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]) |