Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Only query version if enabled

  • Loading branch information...
commit 37773660e21159cc0a1770ef116854d8be864a18 1 parent 197b5ad
Dennis Weewer authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/facter/pkgng.rb
View
4 lib/facter/pkgng.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.