summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
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