diff options
Diffstat (limited to 'lib/puppet/type/resources.rb')
-rw-r--r-- | lib/puppet/type/resources.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/puppet/type/resources.rb b/lib/puppet/type/resources.rb index 2960998c9..fc7109c38 100644 --- a/lib/puppet/type/resources.rb +++ b/lib/puppet/type/resources.rb @@ -78,12 +78,10 @@ Puppet::Type.newtype(:resources) do end def able_to_ensure_absent?(resource) - begin resource[:ensure] = :absent - rescue ArgumentError, Puppet::Error => detail + rescue ArgumentError, Puppet::Error => detail err "The 'ensure' attribute on #{self[:name]} resources does not accept 'absent' as a value" false - end end # Generate any new resources we need to manage. This is pretty hackish |