Skip to content

Commit b4f2682

Browse files
Merge pull request #240 from bastelfreak/cleanup
openssl::export::pkcs12: cleanup if condition
2 parents 8974faf + 3d1a631 commit b4f2682

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

manifests/export/pkcs12.pp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,10 @@
6363
'-nodes', '-noiter',
6464
] + $chain_opt + $passin_opt + $passout_opt
6565

66-
if $dynamic {
67-
$exec_params = {
68-
refreshonly => true,
69-
subscribe => $resources,
70-
}
66+
$exec_params = if $dynamic {
67+
{ refreshonly => true, subscribe => $resources }
7168
} else {
72-
$exec_params = { creates => $full_path, }
69+
{ creates => $full_path }
7370
}
7471

7572
exec { "Export ${name} to ${full_path}":

0 commit comments

Comments
 (0)