From c5d94b75ad478e006e4c7f44ec70387dc7f4ad28 Mon Sep 17 00:00:00 2001 From: Eric Shamow Date: Thu, 23 Oct 2014 16:29:38 -0700 Subject: [PATCH] Explicitly set allow_virtual to false for package resource --- lib/facter/virtualenv_version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/facter/virtualenv_version.rb b/lib/facter/virtualenv_version.rb index 6d4224ae..ff594138 100644 --- a/lib/facter/virtualenv_version.rb +++ b/lib/facter/virtualenv_version.rb @@ -1,7 +1,7 @@ # Make virtualenv version available as a fact # Works with virualenv loaded and without, pip installed and package installed require 'puppet' -pkg = Puppet::Type.type(:package).new(:name => "virtualenv") +pkg = Puppet::Type.type(:package).new(:name => "virtualenv",:allow_virtual => 'false') Facter.add("virtualenv_version") do has_weight 100 setcode do