summaryrefslogtreecommitdiff
path: root/lib/chef/mixin/homebrew_user.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/mixin/homebrew_user.rb')
-rw-r--r--lib/chef/mixin/homebrew_user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/mixin/homebrew_user.rb b/lib/chef/mixin/homebrew_user.rb
index 9e619c3c47..7703538ff7 100644
--- a/lib/chef/mixin/homebrew_user.rb
+++ b/lib/chef/mixin/homebrew_user.rb
@@ -23,7 +23,7 @@
# awkward to use modules elsewhere (e.g., chef/provider/package/homebrew/owner)
require_relative "shell_out"
-require "etc"
+require "etc" unless defined?(Etc)
class Chef
module Mixin