Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions manifests/ubuntu.pp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#
# Also, using $::apt_agent6_beta_repo to access fact instead of
# $facts hash - for compatibility with puppet3.x default behavior
if $::apt_agent6_beta_repo and $agent_version == 'latest' {
if str2bool("$::apt_agent6_beta_repo") and $agent_version == 'latest' {
exec { 'datadog_apt-get_remove_agent6':
command => '/usr/bin/apt-get remove -y -q datadog-agent',
}
Expand All @@ -50,7 +50,7 @@
}
}

if $::apt_agent6_beta_repo {
if str2bool("$::apt_agent6_beta_repo") {
file { '/etc/apt/sources.list.d/datadog-beta.list':
ensure => absent,
}
Expand Down