]> review.fuel-infra Code Review - puppet-modules/puppet-ceilometer.git/commitdiff
Correct `puppet module list` check in beaker
authorColleen Murphy <colleen@gazlene.net>
Tue, 7 Jul 2015 20:38:27 +0000 (13:38 -0700)
committerColleen Murphy <colleen@gazlene.net>
Tue, 7 Jul 2015 20:38:27 +0000 (13:38 -0700)
The final check during the prep stage, where `puppet module list` is
run so that its output can be used for debugging, should run on the
current host in the loop, not the first host in the array.

Change-Id: I0d8615caf5a652f654ea01020667ef57ab5a90ba

spec/spec_helper_acceptance.rb

index e0f2748cf2bab1c226ec50e3530953555a71bd82..6aa9a35cd45e9fb41f4f83eab19fb832f438f3b4 100644 (file)
@@ -50,7 +50,7 @@ RSpec.configure do |c|
       on host, "rm -fr #{repo}"
 
       # List modules installed to help with debugging
-      on hosts[0], puppet('module','list'), { :acceptable_exit_codes => 0 }
+      on host, puppet('module','list'), { :acceptable_exit_codes => 0 }
     end
   end
 end