summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorlutter <lutter@980ebf18-57e1-0310-9a29-db15c13687c0>2006-06-15 15:43:36 +0000
committerlutter <lutter@980ebf18-57e1-0310-9a29-db15c13687c0>2006-06-15 15:43:36 +0000
commitbdb9110b358e7701e3b120cfbab6ca99253460a2 (patch)
tree6391777b56fb5522bf16128142c565957e5b51da /lib
parent883921c7607da1a805b223ffeff6950f97192315 (diff)
downloadpuppet-bdb9110b358e7701e3b120cfbab6ca99253460a2.tar.gz
puppet-bdb9110b358e7701e3b120cfbab6ca99253460a2.tar.xz
puppet-bdb9110b358e7701e3b120cfbab6ca99253460a2.zip
Delete entries from the config file if their should is 'absent'
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1290 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/type/yumrepo.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/puppet/type/yumrepo.rb b/lib/puppet/type/yumrepo.rb
index c7add289b..bb07b93b3 100644
--- a/lib/puppet/type/yumrepo.rb
+++ b/lib/puppet/type/yumrepo.rb
@@ -22,7 +22,11 @@ module Puppet
result = nil
else
result = set
- parent.section[inikey] = should
+ if should == :absent
+ parent.section[inikey] = nil
+ else
+ parent.section[inikey] = should
+ end
end
return result
end
@@ -163,6 +167,7 @@ module Puppet
@inifile = nil
@yumconf = "/etc/yum.conf"
@defaultrepodir = nil
+ super
end
# Return the Puppet::IniConfig::Section for this yumrepo element