Puppet: System Administration Automated

Support

Ticket #1103 (closed defect: fixed)

Opened 9 months ago

Last modified 9 months ago

0.24.2rc1 puppetrun sets the 'oldconfig' to puppet.conf, which causes parse_config to fail

Reported by: alden Assigned to: community
Priority: normal Milestone:
Component: library Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Attached Patches: None Complexity: Unknown

Description

puppetrun sets config to '.../puppet.conf' and then calls parse_config(config) - this causes parse_config to think that it's the old style config file and tries to parse it with old_parse (which of course fails):

# Now parse the config
config = File.join(Puppet[:confdir], "puppet.conf")
Puppet.parse_config(config)

if File.exists? config
    Puppet.settings.parse(config)
end

Isn't the second Puppet.settings.parse(config) redundent? Shouldn't it just be:

Puppet.parse_config()

Change History

02/28/08 21:50:02 changed by luke

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [82b02b9].