Skip to content

Commit

Permalink
Add a check for Puppet version to task helper
Browse files Browse the repository at this point in the history
This commit will add a check for Puppet version being 5 or greater
around the task test helper. This ensures that is it not attempted
pre-task versions of puppet.
  • Loading branch information
Will Meek committed Nov 10, 2017
1 parent b3d1148 commit bccf415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ def retry_on_error_matching(max_retry_count = 3, retry_wait_interval_secs = 5, e

# Configure all nodes in nodeset
c.before :suite do
run_puppet_access_login(user: 'admin') if pe_install?
run_puppet_access_login(user: 'admin') if pe_install? && puppet_version =~ %r{(5\.\d\.\d)}
end
end

0 comments on commit bccf415

Please sign in to comment.