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.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ohai/plugins/passwd.rb b/lib/ohai/plugins/passwd.rb
index 5519adc6..2c43d73b 100644
--- a/lib/ohai/plugins/passwd.rb
+++ b/lib/ohai/plugins/passwd.rb
@@ -4,6 +4,10 @@ Ohai.plugin(:Passwd) do
provides "etc", "current_user"
optional true
+ # @param [String] str
+ #
+ # @return [String]
+ #
def fix_encoding(str)
str.force_encoding(Encoding.default_external) if str.respond_to?(:force_encoding)
str