From: Ian MacLennan Date: Mon, 25 May 2015 13:28:04 +0000 (-0400) Subject: Backwards compatibility with older versions of puppet X-Git-Tag: 2.1.0~3^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=e52145110c28b714da78f0cfcb32d8e3b858ae29;p=puppet-modules%2Fpuppetlabs-apt.git Backwards compatibility with older versions of puppet --- diff --git a/manifests/init.pp b/manifests/init.pp index 5d9baa2..ded13f2 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -72,13 +72,13 @@ class apt( } $sources_list_content = $_purge['sources.list'] ? { - false => undef, - true => "# Repos managed by puppet.\n", + true => "# Repos managed by puppet.\n", + default => undef, } $preferences_ensure = $_purge['preferences'] ? { - false => file, - true => absent, + true => absent, + default => file, } if $_update['frequency'] == 'always' {