From 24ddf393801bafea120d3d442dda7a331246c5b4 Mon Sep 17 00:00:00 2001 From: Jay Shepherd Date: Mon, 17 Sep 2018 14:11:39 -0600 Subject: Update netscaler.rb to introduce secret scrubbing (#1518) --- lib/oxidized/model/netscaler.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/oxidized/model') diff --git a/lib/oxidized/model/netscaler.rb b/lib/oxidized/model/netscaler.rb index 278da1b..d8a844e 100644 --- a/lib/oxidized/model/netscaler.rb +++ b/lib/oxidized/model/netscaler.rb @@ -14,6 +14,14 @@ class NetScaler < Oxidized::Model comment cfg end + cmd :secret do |cfg| + cfg.gsub! /(-password)\s\w+/, '\\1