Skip to content

Commit

Permalink
Merge pull request #23 from borisyukd/master
Browse files Browse the repository at this point in the history
Fix deprecated Puppet.parse_config
  • Loading branch information
petems committed Nov 6, 2013
2 parents 02691d7 + dd66ac1 commit 0534ad7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/cucumber-puppet/puppet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ def klass=(klass)
# Compile catalog for configured testnode.
def compile_catalog( node = nil )
Puppet.settings.handlearg("--confdir", @puppetcfg['confdir'])
Puppet.parse_config
begin
Puppet.initialize_settings unless Puppet.settings.send(:global_defaults_initialized?)
rescue NameError
Puppet.parse_config
end
# reset confdir in case it got overwritten
@puppetcfg.each do |option,value|
Puppet.settings.handlearg("--#{option}", value)
Expand Down

0 comments on commit 0534ad7

Please sign in to comment.