Skip to content

Commit 6845dab

Browse files
LukasAudbastelfreak
authored andcommitted
Switch from merge() to stdlib::merge()
1 parent 371eab3 commit 6845dab

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

manifests/init.pp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
assert_type(Integer, $update['tries'])
201201
}
202202

203-
$_update = merge($apt::update_defaults, $update)
203+
$_update = stdlib.merge($apt::update_defaults, $update)
204204
include apt::update
205205

206206
if $purge['sources.list'] {
@@ -222,11 +222,11 @@
222222
assert_type(Boolean, $purge['apt.conf.d'])
223223
}
224224

225-
$_purge = merge($apt::purge_defaults, $purge)
225+
$_purge = stdlib.merge($apt::purge_defaults, $purge)
226226

227227
if $proxy['perhost'] {
228228
$_perhost = $proxy['perhost'].map |$item| {
229-
$_item = merge($apt::proxy_defaults, $item)
229+
$_item = stdlib.merge($apt::proxy_defaults, $item)
230230
$_scheme = $_item['https'] ? {
231231
true => 'https',
232232
default => 'http',
@@ -239,7 +239,7 @@
239239
true => 'DIRECT',
240240
default => "${_scheme}://${_item['host']}${_port}/",
241241
}
242-
merge($item, {
242+
stdib::merge($item, {
243243
'scheme' => $_scheme,
244244
'target' => $_target,
245245
}
@@ -249,7 +249,7 @@
249249
$_perhost = {}
250250
}
251251

252-
$_proxy = merge($apt::proxy_defaults, $proxy, { 'perhost' => $_perhost })
252+
$_proxy = stdlib.merge($apt::proxy_defaults, $proxy, { 'perhost' => $_perhost })
253253

254254
$confheadertmp = epp('apt/_conf_header.epp')
255255
$proxytmp = epp('apt/proxy.epp', { 'proxies' => $_proxy })

0 commit comments

Comments
 (0)