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
This commit is contained in:
Dan Prince 2017-01-02 16:46:48 -05:00
parent 57fdd2ed1f
commit 545cfa2d19
1 changed files with 4 additions and 0 deletions

View File

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