From cc9d24d447b4422e01b4c5894d89b8115645930c Mon Sep 17 00:00:00 2001 From: Shiva Poudel Date: Tue, 24 Nov 2015 14:52:02 +0545 Subject: [PATCH] Revert "Update virtualenv_version.rb" --- 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 8cd10364..a0917d09 100644 --- a/lib/facter/virtualenv_version.rb +++ b/lib/facter/virtualenv_version.rb @@ -3,7 +3,7 @@ Facter.add("virtualenv_version") do setcode do if Facter::Util::Resolution.which('virtualenv') - Facter::Util::Resolution.exec('virtualenv --version 2>/dev/null || echo 0.0.0').match(/^(\d+\.\d+\.?\d*).*$/)[0] + Facter::Util::Resolution.exec('virtualenv --version 2>&1').match(/^(\d+\.\d+\.?\d*).*$/)[0] end end end