Skip to content

Commit

Permalink
Merge pull request #815 from ekingme/patch-1
Browse files Browse the repository at this point in the history
Confine nginx_version fact
  • Loading branch information
3flex authored Jun 23, 2016
2 parents 8eb657f + b6c6df1 commit 9f08550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/facter/nginx_version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Facter.add(:nginx_version) do
setcode do
if Facter::Util::Resolution.which('nginx')
if Facter.value('kernel') != 'windows' && Facter::Util::Resolution.which('nginx')
nginx_version = Facter::Util::Resolution.exec('nginx -v 2>&1')
%r{^nginx version: nginx\/([\w\.]+)}.match(nginx_version)[1]
end
Expand Down

0 comments on commit 9f08550

Please sign in to comment.