From 342b90f4cc2d57202d2fdb1f7136e1bb062c6130 Mon Sep 17 00:00:00 2001 From: Morgan Haskel Date: Fri, 12 Dec 2014 12:53:18 -0800 Subject: [PATCH] Use puppet() instead of shell() to install module dependencies --- spec/spec_helper_acceptance.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index a523bb8..6b2aa5d 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -28,7 +28,7 @@ RSpec.configure do |c| hosts.each do |host| copy_module_to(host, :source => proj_root, :module_name => 'apt') shell("/bin/touch #{default['puppetpath']}/hiera.yaml") - shell('puppet module install puppetlabs-stdlib --version 2.2.1', { :acceptable_exit_codes => [0,1] }) + on host, puppet('module install puppetlabs-stdlib --version 2.2.1'), { :acceptable_exit_codes => [0,1] } end end end -- 2.45.2