summaryrefslogtreecommitdiff
path: root/lib/chef/provider/package/yum/python_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/package/yum/python_helper.rb')
-rw-r--r--lib/chef/provider/package/yum/python_helper.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/provider/package/yum/python_helper.rb b/lib/chef/provider/package/yum/python_helper.rb
index df21a9f091..0a09e12c3d 100644
--- a/lib/chef/provider/package/yum/python_helper.rb
+++ b/lib/chef/provider/package/yum/python_helper.rb
@@ -93,14 +93,14 @@ class Chef
options.each_with_object({}) do |opt, h|
if opt =~ /--enablerepo=(.+)/
$1.split(",").each do |repo|
- h["enablerepos"] ||= []
- h["enablerepos"].push(repo)
+ h["repos"] ||= []
+ h["repos"].push( { "enable" => repo } )
end
end
if opt =~ /--disablerepo=(.+)/
$1.split(",").each do |repo|
- h["disablerepos"] ||= []
- h["disablerepos"].push(repo)
+ h["repos"] ||= []
+ h["repos"].push( { "disable" => repo } )
end
end
end