Skip to content

Commit da10aae

Browse files
authored
Merge pull request #388 from DataDog/jaime/fixlint
[puppet] fixing lint issues
2 parents 142a858 + a8ae688 commit da10aae

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ rvm:
88
- 2.1.1
99
- 2.2.3
1010
script:
11-
- bundle exec rake spec
1211
- bundle exec rake test
1312
env:
1413
- PUPPET_VERSION="~> 2.7.0"

manifests/ubuntu.pp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@
3737
#
3838
# Also, using $::apt_agent6_beta_repo to access fact instead of
3939
# $facts hash - for compatibility with puppet3.x default behavior
40-
if str2bool("$::apt_agent6_beta_repo") and $agent_version == 'latest' {
40+
#
41+
# lint:ignore:only_variable_string
42+
if str2bool("${::apt_agent6_beta_repo}") and $agent_version == 'latest' {
43+
# lint:endignore
4144
exec { 'datadog_apt-get_remove_agent6':
4245
command => '/usr/bin/apt-get remove -y -q datadog-agent',
4346
}
@@ -50,7 +53,9 @@
5053
}
5154
}
5255

53-
if str2bool("$::apt_agent6_beta_repo") {
56+
# lint:ignore:only_variable_string
57+
if str2bool("${::apt_agent6_beta_repo}") {
58+
# lint:endignore
5459
file { '/etc/apt/sources.list.d/datadog-beta.list':
5560
ensure => absent,
5661
}

0 commit comments

Comments
 (0)