Skip to content

Commit 8fa8533

Browse files
committed
Replace stdlib::merge() calls by native operand +
1 parent 39bd04e commit 8fa8533

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
6+
## [2024-06-27] Release 1.1.0
7+
8+
**Changes**
9+
- Fixed `puppetlabs/apt` requirement
10+
- Fixed Puppet 8 warnings
11+
- Replaced `merge()` function calls by native `+` operand
12+
13+
[Full changes](https://github.com/deric/puppet-fluentbit/compare/v1.0.0...v1.1.0)
14+
15+
516
## [2024-06-21] Release 1.0.0
617

718
**Changes**

manifests/init.pp

+3-3
Original file line numberDiff line numberDiff line change
@@ -283,15 +283,15 @@
283283
~> Class['fluentbit::service']
284284

285285
$inputs.each |$name, $conf| {
286-
create_resources(fluentbit::pipeline, { $name => merge({ 'pipeline' => 'input' }, $conf) })
286+
create_resources(fluentbit::pipeline, { $name => { 'pipeline' => 'input' } + $conf })
287287
}
288288

289289
$outputs.each |$name, $conf| {
290-
create_resources(fluentbit::pipeline, { $name => merge({ 'pipeline' => 'output' }, $conf) })
290+
create_resources(fluentbit::pipeline, { $name => { 'pipeline' => 'output' } + $conf })
291291
}
292292

293293
$filters.each |$name, $conf| {
294-
create_resources(fluentbit::pipeline, { $name => merge({ 'pipeline' => 'filter' }, $conf) })
294+
create_resources(fluentbit::pipeline, { $name => { 'pipeline' => 'filter' } + $conf })
295295
}
296296

297297
create_resources(fluentbit::upstream, $upstreams)

manifests/pipeline.pp

+5-9
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,11 @@
7272
name => $plugin,
7373
pipeline_type => $pipeline,
7474
order => $order,
75-
properties => merge(
76-
$db_settings,
77-
{
78-
alias => $title,
79-
},
80-
$properties,
81-
$script_settings,
82-
$upstream_settings,
83-
)
75+
properties => $db_settings
76+
+ { alias => $title }
77+
+ $properties
78+
+ $script_settings
79+
+ $upstream_settings,
8480
}
8581
),
8682
}

0 commit comments

Comments
 (0)