Skip to content

Commit

Permalink
Merge pull request #813 from bastelfreak/fixfact
Browse files Browse the repository at this point in the history
make fact work on old nginx as well
  • Loading branch information
3flex authored Jun 24, 2016
2 parents 334b609 + 189cf07 commit 204512f
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
Expand Up @@ -2,7 +2,7 @@
setcode do
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]
%r{nginx version: nginx\/([\w\.]+)}.match(nginx_version)[1]
end
end
end

0 comments on commit 204512f

Please sign in to comment.