Fix race condition in get puppet status

Check if puppet is running or not before reading last_summary

Closes-bug: #1593166
Change-Id: Ie8d68b570109277ba3324d6404d626bc98eb44ba
This commit is contained in:
Kyrylo Galanov 2016-06-30 06:01:31 +02:00
parent 22d52ee121
commit 8402425be1

View File

@ -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