aboutsummaryrefslogtreecommitdiffstats
path: root/lib/puppet/provider/package
diff options
context:
space:
mode:
authorDan Prince <dprince@redhat.com>2017-01-02 16:46:48 -0500
committerDan Prince <dprince@redhat.com>2017-01-02 16:46:48 -0500
commit545cfa2d1972a4d03ccc5f4608060e72ff857780 (patch)
tree7baa17e7cad82f9e5b9948038d192661fa72bd98 /lib/puppet/provider/package
parent57fdd2ed1f557eba78b73bf2a6bd7cea04ec3e39 (diff)
Avoid Yum/RPM prefetch in norpm provider
When package installation is disabled we still prefetch packages. This disables the package prefetch by returning an empty array which should be fine in the normal case and fixes issues when running puppet in some docker containers. Change-Id: Ia483c5f8500b804ba37a80e9ca1ec9c038f0a867
Diffstat (limited to 'lib/puppet/provider/package')
-rw-r--r--lib/puppet/provider/package/norpm.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/puppet/provider/package/norpm.rb b/lib/puppet/provider/package/norpm.rb
index 1616e57..0145d9f 100644
--- a/lib/puppet/provider/package/norpm.rb
+++ b/lib/puppet/provider/package/norpm.rb
@@ -33,4 +33,8 @@ Puppet::Type.type(:package).provide :norpm, :source => :rpm, :parent => :rpm do
true
end
+ def self.instances
+ return []
+ end
+
end