From 68dd4193d1248169a7d8d131971d1ad674f24afa Mon Sep 17 00:00:00 2001 From: Adam Smith Date: Mon, 17 Sep 2018 14:27:05 -0700 Subject: tmos: ZebOS configuration should only be captured if it's configured (#1528) --- lib/oxidized/model/tmos.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/oxidized/model/tmos.rb b/lib/oxidized/model/tmos.rb index fff7534..8ec04d3 100644 --- a/lib/oxidized/model/tmos.rb +++ b/lib/oxidized/model/tmos.rb @@ -42,7 +42,7 @@ class TMOS < Oxidized::Model comment cfg end - cmd('cat /config/zebos/*/ZebOS.conf') { |cfg| comment cfg } + cmd('[ -d "/config/zebos" ] && cat /config/zebos/*/ZebOS.conf') { |cfg| comment cfg } cmd('cat /config/partitions/*/bigip.conf') { |cfg| comment cfg } -- cgit v1.2.1