Skip to content

Commit

Permalink
Merge pull request #4880 from kylog/pup-6160/revert-pup-5737
Browse files Browse the repository at this point in the history
Revert "(PUP-5737) Backport test fix from a pe-puppet fork"
  • Loading branch information
hlindberg committed Apr 14, 2016
2 parents bc598c3 + c5686d7 commit 4357827
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions acceptance/setup/common/pre-suite/100_SetParser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,7 @@
# otherwise the setting is created outside of any section
# which makes it appear future parser is not enabled.
puppet_conf = host.puppet['config']
on(host, "grep '[main]' #{puppet_conf}", :acceptable_exit_codes => [0,1,2]) do |result|
case result.exit_code
when 0
# there is an assumption here that if a [main] section is present, it
# has settings otherwise PUP-4755 comes back into play, though
# 'global' settings should still end up in main when Puppet parses
on(host, puppet("config set --section main parser #{parser}"))
else
# not found (1), or file not present (2)
on(host, "echo \"[main]\nparser=future\n\" >> '#{puppet_conf}'")
end
end
on(host, "echo \"[main]\nparser=future\n\" >> '#{puppet_conf}'")
end
end
end

0 comments on commit 4357827

Please sign in to comment.