Skip to content

Commit

Permalink
fix puppet-lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Nov 8, 2022
1 parent 4b7ca1a commit 1e9dac9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion functions/bool2num_hash_recursive.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
6 changes: 3 additions & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -183,16 +183,16 @@
}

$_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 ? {
Hash => merge($attrs, $_normalized_ensure),
default => $_normalized_ensure,
}

Hash( { $key => $_normalized_attrs })
Hash({ $key => $_normalized_attrs })
}.reduce |$memo, $cfg_opt_hash| {
merge($memo, $cfg_opt_hash)
}
Expand Down

0 comments on commit 1e9dac9

Please sign in to comment.