summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/ftos.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model/ftos.rb')
-rw-r--r--lib/oxidized/model/ftos.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/oxidized/model/ftos.rb b/lib/oxidized/model/ftos.rb
index b465271..1c3b8b4 100644
--- a/lib/oxidized/model/ftos.rb
+++ b/lib/oxidized/model/ftos.rb
@@ -15,6 +15,8 @@ class FTOS < Oxidized::Model
end
cmd 'show inventory' do |cfg|
+ # Old versions of FTOS can occasionally return data that triggers encoding errors.
+ cfg.encode!("UTF-8", :invalid => :replace, :undef => :replace, :replace => "")
comment cfg
end