From 7f84a8c67438e433e3359de03d7ef82fd025799c Mon Sep 17 00:00:00 2001 From: devicenull Date: Tue, 10 Jan 2017 16:42:28 -0500 Subject: Ensure config gets returned even if no replacements are done --- lib/oxidized/model/fiberdriver.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/oxidized/model/fiberdriver.rb') diff --git a/lib/oxidized/model/fiberdriver.rb b/lib/oxidized/model/fiberdriver.rb index c8a7f6a..abe8f68 100644 --- a/lib/oxidized/model/fiberdriver.rb +++ b/lib/oxidized/model/fiberdriver.rb @@ -14,6 +14,7 @@ class FiberDriver < Oxidized::Model cfg.gsub! /^Building configuration.*$/, '' cfg.gsub! /^Current configuration:.*$$/, '' cfg.gsub! /^! Configuration saved on .*$/, '' + cfg end cfg :ssh do -- cgit v1.2.1