Skip to content

Commit 4b949d3

Browse files
neomiliumekohl
andauthored
Use bool@str() to convert boolean to ensure value
Co-authored-by: Ewoud Kohl van Wijngaarden <[email protected]>
1 parent e2a9e66 commit 4b949d3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

manifests/config.pp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,8 @@
2929
$_config = $config
3030
}
3131

32-
$ensure_unsafe_registration = $unsafe_registration ? {
33-
true => present,
34-
false => absent,
35-
}
36-
3732
ini_setting { "${config_file} register-unsafely-without-email true":
38-
ensure => $ensure_unsafe_registration,
33+
ensure => bool2str($unsafe_registration, 'present', 'absent'),
3934
path => $config_file,
4035
section => '',
4136
setting => 'register-unsafely-without-email',

0 commit comments

Comments
 (0)