Avoid Yum/RPM prefetch in norpm provider
authorDan Prince <dprince@redhat.com>
Mon, 2 Jan 2017 21:46:48 +0000 (16:46 -0500)
committerDan Prince <dprince@redhat.com>
Mon, 2 Jan 2017 21:46:48 +0000 (16:46 -0500)
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

lib/puppet/provider/package/norpm.rb

index 1616e57..0145d9f 100644 (file)
@@ -33,4 +33,8 @@ Puppet::Type.type(:package).provide :norpm, :source => :rpm, :parent => :rpm do
     true
   end
 
+  def self.instances
+    return []
+  end
+
 end