From 914912a1309bab3002d013900c4aec39c37b5ac4 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Fri, 3 Mar 2023 17:42:12 +0100 Subject: [PATCH] plans/run.pp: Please puppet-lint --- plans/run.pp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plans/run.pp b/plans/run.pp index 3b7b9fed..8c56845c 100644 --- a/plans/run.pp +++ b/plans/run.pp @@ -25,8 +25,8 @@ '_error' => { 'msg' => "The task puppet_agent::version failed: ${result.error.message}. Unable to determine if the Puppet agent is installed.", 'kind' => 'puppet_agent/agent-version-error', - 'details' => {} - } + 'details' => {}, + }, } Result.new($result.target, $err) @@ -49,8 +49,8 @@ '_error' => { 'msg' => 'Puppet agent is not installed on the target. Run the puppet_agent::install task on these targets to install the Puppet agent.', 'kind' => 'puppet_agent/agent-not-installed', - 'details' => {} - } + 'details' => {}, + }, } Result.new($result.target, $err) @@ -59,13 +59,13 @@ # Run the agent on all targets that have the agent installed. $arg_env = $environment ? { Undef => {}, - default => {'environment' => $environment, }, + default => { 'environment' => $environment, }, } $arg_noop = $noop ? { true => { 'noop' => true, }, default => {}, } - $args = $arg_env + $arg_noop + {'_catch_errors' => true } + $args = $arg_env + $arg_noop + { '_catch_errors' => true } $run_results = run_task( 'puppet_agent::run', $agent_results.targets,