From ee326f20babdb783071337d5ed097d91fb791a89 Mon Sep 17 00:00:00 2001 From: Will Yardley Date: Sat, 8 Oct 2016 22:43:08 -0700 Subject: [PATCH] Revert "Prevent custom fact from complaining when openresty is installed" --- lib/facter/nginx_version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/facter/nginx_version.rb b/lib/facter/nginx_version.rb index 20a1f4cb0..83346b467 100644 --- a/lib/facter/nginx_version.rb +++ b/lib/facter/nginx_version.rb @@ -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|openresty)\/([\w\.]+)}.match(nginx_version)[2] + %r{nginx version: nginx\/([\w\.]+)}.match(nginx_version)[1] end end end