From a0b479c6112c2f48aefe937249453f9a73beae5c Mon Sep 17 00:00:00 2001 From: Bernhard Suttner Date: Mon, 18 Dec 2023 15:04:26 +0100 Subject: [PATCH] Fix missing task state The task doesn't really have a resource which can be used to lock. --- app/lib/actions/foreman_acd/deploy_all_hosts.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/lib/actions/foreman_acd/deploy_all_hosts.rb b/app/lib/actions/foreman_acd/deploy_all_hosts.rb index 2bdf5c7c..c61de052 100644 --- a/app/lib/actions/foreman_acd/deploy_all_hosts.rb +++ b/app/lib/actions/foreman_acd/deploy_all_hosts.rb @@ -5,8 +5,7 @@ module ForemanAcd # DeployAllHosts implements a Foreman Task EntryAction class DeployAllHosts < Actions::EntryAction def plan(app_instance, safe_deploy) - action_subject(app_instance, :safe_deploy => safe_deploy) - plan_self(:id => app_instance.id) + plan_self(:id => app_instance.id, :safe_deploy => safe_deploy) end def run