Skip to content

Commit

Permalink
Replace legacy merge() with native puppet code
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Aug 21, 2023
1 parent 5dac750 commit d9ddc17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,12 @@
}

$policies.each | $name, $policy_config | {
$merges_policy_config = merge($global_acl_config, $policy_config)
$merges_policy_config = $global_acl_config + $policy_config
create_resources(consul_policy, { $name => $merges_policy_config })
}

$tokens.each | $name, $token_config | {
$merged_token_config = merge($global_acl_config, $token_config)
$merged_token_config = $global_acl_config + $token_config
create_resources(consul_token, { $name => $merged_token_config })
}
}
2 changes: 1 addition & 1 deletion manifests/watch.pp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
}
}

$merged_hash = merge($basic_hash, $type_hash)
$merged_hash = $basic_hash + $type_hash

$watch_hash = {
watches => [$merged_hash.filter |$key, $val| { $val =~ NotUndef }],
Expand Down

0 comments on commit d9ddc17

Please sign in to comment.