summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/masteros.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model/masteros.rb')
-rw-r--r--lib/oxidized/model/masteros.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/oxidized/model/masteros.rb b/lib/oxidized/model/masteros.rb
index c03beb1..33388a0 100644
--- a/lib/oxidized/model/masteros.rb
+++ b/lib/oxidized/model/masteros.rb
@@ -10,13 +10,12 @@ class MasterOS < Oxidized::Model
end
cmd :all do |cfg|
- cfg.each_line.to_a[1..-2].join
+ cfg.cut_both
cfg.gsub /^(! Configuration ).*/, '!'
end
cmd 'show inventory' do |cfg|
- cfg = cfg.each_line.to_a[0..-2].join
- comment cfg
+ comment cfg.cut_tail
end
cmd 'show plugins' do |cfg|