aboutsummaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2013-01-23 23:10:40 +0100
committerGabriel Filion <lelutin@gmail.com>2013-02-16 14:58:43 -0500
commitd51e2af9d452731f63b2fe16391e9cd2ff9d640f (patch)
treefc42404332cc78a21c15b062bfed7d8d6b1c39d7 /lib/puppet/parser/functions
parent14670466be5eceba043e697d5f6f0f0ada9d5b07 (diff)
downloadpuppet-apt-d51e2af9d452731f63b2fe16391e9cd2ff9d640f.tar.gz
puppet-apt-d51e2af9d452731f63b2fe16391e9cd2ff9d640f.tar.bz2
Don't check for a package priority to be set when removing an APT preferences snippet.
The problem I'm facing is that the sanity checks prevent one from using a simple: apt::preferences_snippet { "bla": ensure => absent } So, first set a default value for the `priority' parameter, so that it's not required anymore. Second, add a sanity check to error out when priority is not set, to get the safe old behaviour. Then, wrap all sanity checks about arguments within a "if $ensure == 'present'" block.
Diffstat (limited to 'lib/puppet/parser/functions')
0 files changed, 0 insertions, 0 deletions