From 8402425be1ad71cd5f41267bda70c064828b077b Mon Sep 17 00:00:00 2001 From: Kyrylo Galanov Date: Thu, 30 Jun 2016 06:01:31 +0200 Subject: [PATCH] Fix race condition in get puppet status Check if puppet is running or not before reading last_summary Closes-bug: #1593166 Change-Id: Ie8d68b570109277ba3324d6404d626bc98eb44ba --- mcagents/puppetd.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcagents/puppetd.rb b/mcagents/puppetd.rb index 9a1356bf..67ff1165 100644 --- a/mcagents/puppetd.rb +++ b/mcagents/puppetd.rb @@ -51,9 +51,9 @@ module MCollective end action "last_run_summary" do + set_status last_run_summary last_run_report - set_status end action "enable" do