Skip to content

Commit

Permalink
Merge pull request #240 from bastelfreak/cleanup
Browse files Browse the repository at this point in the history
openssl::export::pkcs12: cleanup if condition
  • Loading branch information
SimonHoenscheid authored Feb 10, 2025
2 parents 8974faf + 3d1a631 commit b4f2682
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions manifests/export/pkcs12.pp
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,10 @@
'-nodes', '-noiter',
] + $chain_opt + $passin_opt + $passout_opt

if $dynamic {
$exec_params = {
refreshonly => true,
subscribe => $resources,
}
$exec_params = if $dynamic {
{ refreshonly => true, subscribe => $resources }
} else {
$exec_params = { creates => $full_path, }
{ creates => $full_path }
}

exec { "Export ${name} to ${full_path}":
Expand Down

0 comments on commit b4f2682

Please sign in to comment.