This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 1b81d1e3 Show puppet status
1b81d1e3 is described below

commit 1b81d1e32467d1f4defa00f3cb46338e70847288
Author: Sebb <[email protected]>
AuthorDate: Tue Jun 24 22:02:04 2025 +0100

    Show puppet status
---
 tools/pubsub.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/pubsub.rb b/tools/pubsub.rb
index 9afe4134..d486b205 100644
--- a/tools/pubsub.rb
+++ b/tools/pubsub.rb
@@ -213,7 +213,9 @@ begin
       4.times do |i|
         puts stamp "Starting Puppet"
         system('puppet', 'agent', '-t')
-        break unless $?.exitstatus == 1
+        status = $?.exitstatus
+        puts stamp "Puppet completed with status #{status}"
+        break unless status == 1
         puts stamp "Failed to run Puppet, will try again shortly"
         sleep 30 * (i+1)
       end

Reply via email to