Skip to content

Commit

Permalink
Add a check for Puppet version to task and bolt helpers
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 and bolt acceptance test helpers. This ensures that
they are not attempted on pre-task/bolt versions of puppet.
  • Loading branch information
Will Meek committed Nov 10, 2017
1 parent b3d1148 commit a128054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper_acceptance.rb
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 a128054

Please sign in to comment.