Skip to content

Commit 52f56f6

Browse files
committed
Explicitly set allow_virtual to false for package resource
1 parent c5d94b7 commit 52f56f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/facter/pip_version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Make pip version available as a fact
22
# Works with pip loaded and without, pip installed using pip and package installed
33
require 'puppet'
4-
pkg = Puppet::Type.type(:package).new(:name => "python-pip")
4+
pkg = Puppet::Type.type(:package).new(:name => "python-pip",:allow_virtual => 'false')
55
Facter.add("pip_version") do
66
has_weight 100
77
setcode do

lib/facter/python_version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Make python versions available as facts
22
# In lists default python and system python versions
33
require 'puppet'
4-
pkg = Puppet::Type.type(:package).new(:name => "python")
4+
pkg = Puppet::Type.type(:package).new(:name => "python",:allow_virtual => 'false')
55

66
Facter.add("system_python_version") do
77
setcode do

0 commit comments

Comments
 (0)