summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/opnsense.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model/opnsense.rb')
-rw-r--r--lib/oxidized/model/opnsense.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/opnsense.rb b/lib/oxidized/model/opnsense.rb
index a8f7a47..bbad777 100644
--- a/lib/oxidized/model/opnsense.rb
+++ b/lib/oxidized/model/opnsense.rb
@@ -3,7 +3,7 @@ class OpnSense < Oxidized::Model
# must enable SSH and password-based SSH access
cmd :all do |cfg|
- cfg.each_line.to_a[1..-1].join
+ cfg.cut_head
end
cmd 'cat /conf/config.xml' do |cfg|