summaryrefslogtreecommitdiff
path: root/lib/ohai/plugins/passwd.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-05-15 10:33:04 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-05-15 10:36:31 -0700
commit537596bbfed43d08a0bfcbe6b685a026e60c9a09 (patch)
tree159b568306da8a5807f7bca538a2ac515c66d60b /lib/ohai/plugins/passwd.rb
parent62a879800c77cd6c1808e7a247976d7c910f6209 (diff)
downloadohai-537596bbfed43d08a0bfcbe6b685a026e60c9a09.tar.gz
Apply require speedups to ohailcg/require-speedups
Same kinds of fixes from chef core with require_relative and idempotency checks. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/ohai/plugins/passwd.rb')
-rw-r--r--lib/ohai/plugins/passwd.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/passwd.rb b/lib/ohai/plugins/passwd.rb
index 70a30463..5519adc6 100644
--- a/lib/ohai/plugins/passwd.rb
+++ b/lib/ohai/plugins/passwd.rb
@@ -1,6 +1,6 @@
Ohai.plugin(:Passwd) do
- require "etc"
+ require "etc" unless defined?(Etc)
provides "etc", "current_user"
optional true