Skip to content

Commit ecedb75

Browse files
committed
(CAT-1351) - Fixing unsafe interpolation puppet-linting
1 parent 3259e32 commit ecedb75

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

manifests/mark.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
$onlyif_cmd = [['/usr/bin/dpkg', '-l', $title]]
3131
$command = ['/usr/bin/apt-mark', $setting, $title]
3232

33-
exec { "apt-mark ${setting} ${title}":
33+
exec { ['apt-mark', $setting, $title]:
3434
command => $command,
3535
onlyif => $onlyif_cmd,
3636
unless => $unless_cmd,

manifests/ppa.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
mode => '0755',
106106
}
107107

108-
exec { "add-apt-repository-${name}":
108+
exec { ['add-apt-repository-', $name]:
109109
environment => $_proxy_env,
110110
command => $script_path,
111111
logoutput => 'on_failure',

manifests/update.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@
5656
} else {
5757
$_refresh = true
5858
}
59+
$command = [$apt::provider, 'update']
5960
exec { 'apt_update':
60-
command => "${apt::provider} update",
61+
command => $command,
6162
loglevel => $apt::_update['loglevel'],
6263
logoutput => 'on_failure',
6364
refreshonly => $_refresh,

0 commit comments

Comments
 (0)