diff --git a/functions/bool2num_hash_recursive.pp b/functions/bool2num_hash_recursive.pp index c609a914..4ede1091 100644 --- a/functions/bool2num_hash_recursive.pp +++ b/functions/bool2num_hash_recursive.pp @@ -36,7 +36,7 @@ function yum::bool2num_hash_recursive($arg) { } # see the issue for the strange/asymetrical whitespace # https://github.com/kuleuven/puppet-lint-manifest_whitespace-check/issues/8 - Hash( { $key => $return_value }) + Hash({ $key => $return_value }) }.reduce |$attrs_memo, $kv| { merge($attrs_memo, $kv) } diff --git a/manifests/init.pp b/manifests/init.pp index 3c4e6e52..5548a992 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -183,8 +183,8 @@ } $_normalized_ensure = $_ensure ? { - Boolean => Hash( { 'ensure' => bool2num($_ensure) }), - default => Hash( { ensure => $_ensure }), # lint:ignore:unquoted_string_in_selector + Boolean => Hash({ 'ensure' => bool2num($_ensure) }), + default => Hash({ ensure => $_ensure }), # lint:ignore:unquoted_string_in_selector } $_normalized_attrs = $attrs ? { @@ -192,7 +192,7 @@ default => $_normalized_ensure, } - Hash( { $key => $_normalized_attrs }) + Hash({ $key => $_normalized_attrs }) }.reduce |$memo, $cfg_opt_hash| { merge($memo, $cfg_opt_hash) }