Skip to content

Commit

Permalink
plans/run.pp: Please puppet-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Mar 3, 2023
1 parent ef71fc6 commit 914912a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions plans/run.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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,
Expand Down

0 comments on commit 914912a

Please sign in to comment.