From 9dbdb769bfd963f82eb4bfea53c83501d0193766 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Mon, 20 May 2019 18:05:36 -0700 Subject: This hits the ones that are most frequently required. Stops the kernel from scanning through all the activated gems every time in order to resolve names into pathnames. See rubygems/rubygems#2762 Signed-off-by: Lamont Granquist --- lib/chef/provider/group.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chef/provider/group.rb') diff --git a/lib/chef/provider/group.rb b/lib/chef/provider/group.rb index b3aa42ae58..ba84ea9468 100644 --- a/lib/chef/provider/group.rb +++ b/lib/chef/provider/group.rb @@ -18,7 +18,7 @@ require_relative "../provider" require_relative "../mixin/shell_out" -require "etc" +require "etc" unless defined?(Etc) class Chef class Provider -- cgit v1.2.1