Permalink
Browse files

- Only query version if enabled

  • Loading branch information...
Dennis Weewer
Dennis Weewer committed Jan 31, 2014
1 parent 197b5ad commit 37773660e21159cc0a1770ef116854d8be864a18
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/facter/pkgng.rb
View
@@ -26,7 +26,9 @@
confine :kernel => "FreeBSD"
setcode do
- Facter::Util::Resolution.exec("pkg query %v pkg 2>/dev/null")
+ if Facter.pkgng_enabled
+ Facter::Util::Resolution.exec("pkg query %v pkg 2>/dev/null")
+ end
end
end

0 comments on commit 3777366

Please sign in to comment.