summaryrefslogtreecommitdiff
path: root/lib/ohai/plugins/passwd.rb
diff options
context:
space:
mode:
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