Skip to content

Commit 828e942

Browse files
committed
Revert "Fix fact deprecation warning"
1 parent ca685b3 commit 828e942

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

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",:allow_virtual => 'false')
4+
pkg = Puppet::Type.type(:package).new(:name => "python-pip")
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",:allow_virtual => 'false')
4+
pkg = Puppet::Type.type(:package).new(:name => "python")
55

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

lib/facter/virtualenv_version.rb

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

0 commit comments

Comments
 (0)