]> gitweb.fluxo.info Git - puppet-apt.git/commit
Don't check for a package priority to be set when removing an APT preferences snippet.
authorintrigeri <intrigeri@boum.org>
Wed, 23 Jan 2013 22:10:40 +0000 (23:10 +0100)
committerGabriel Filion <lelutin@gmail.com>
Sat, 16 Feb 2013 19:58:43 +0000 (14:58 -0500)
commitd51e2af9d452731f63b2fe16391e9cd2ff9d640f
treefc42404332cc78a21c15b062bfed7d8d6b1c39d7
parent14670466be5eceba043e697d5f6f0f0ada9d5b07
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.
manifests/preferences_snippet.pp