Skip to content

Commit aa9e518

Browse files
committed
init, source: improve hash formatting
The $auth_conf_tmp line should be multiple lines for readability and easier to read diffs when changes occur. Double-indented blocks look wrong. Placing the opening bracket on its own line fixes this.
1 parent ec5e855 commit aa9e518

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

manifests/init.pp

+5-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,11 @@
374374
default => 'present',
375375
}
376376

377-
$auth_conf_tmp = stdlib::deferrable_epp('apt/auth_conf.epp', { 'auth_conf_entries' => $auth_conf_entries })
377+
$auth_conf_tmp = stdlib::deferrable_epp('apt/auth_conf.epp',
378+
{
379+
'auth_conf_entries' => $auth_conf_entries,
380+
},
381+
)
378382

379383
file { '/etc/apt/auth.conf':
380384
ensure => $auth_conf_ensure,

manifests/source.pp

+5-3
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,12 @@
209209
$_architecture = undef
210210
}
211211

212-
$sourcelist = epp('apt/source.list.epp', {
212+
$sourcelist = epp('apt/source.list.epp',
213+
{
213214
'comment' => $comment,
214215
'includes' => $includes,
215-
'options' => delete_undef_values({
216+
'options' => delete_undef_values(
217+
{
216218
'arch' => $_architecture,
217219
'trusted' => $allow_unsigned ? { true => 'yes', false => undef },
218220
'allow-insecure' => $allow_insecure ? { true => 'yes', false => undef },
@@ -222,7 +224,7 @@
222224
),
223225
'location' => $_location,
224226
'components' => $_components,
225-
}
227+
},
226228
)
227229

228230
apt::setting { "list-${name}":

0 commit comments

Comments
 (0)