Skip to content

Commit

Permalink
puppetlabs/stdlib: Require 9.x
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Jun 16, 2023
1 parent 3837bd9 commit 7d8c6cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion functions/bool2num_hash_recursive.pp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ function yum::bool2num_hash_recursive($arg) {
# https://github.com/kuleuven/puppet-lint-manifest_whitespace-check/issues/8
Hash({ $key => $return_value })
}.reduce |$attrs_memo, $kv| {
merge($attrs_memo, $kv)
$attrs_memo + $kv
}
}
6 changes: 3 additions & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,13 @@
}

$_normalized_attrs = $attrs ? {
Hash => merge($attrs, $_normalized_ensure),
Hash => $attrs + $_normalized_ensure,
default => $_normalized_ensure,
}

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

$_normalized_config_options.each |$config, $attributes| {
Expand All @@ -209,7 +209,7 @@
}

# cleanup old kernels
ensure_packages([$utils_package_name])
stdlib::ensure_packages([$utils_package_name])

$_real_installonly_limit = $config_options['installonly_limit'] ? {
Variant[String, Integer] => $config_options['installonly_limit'],
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"dependencies": [
{
"name": "puppetlabs/stdlib",
"version_requirement": ">= 4.18.0 < 9.0.0"
"version_requirement": ">= 9.0.0 < 10.0.0"
},
{
"name": "puppetlabs/concat",
Expand Down

0 comments on commit 7d8c6cf

Please sign in to comment.