diff options
author | Adam Smith <zero1three@gmail.com> | 2018-09-17 14:27:05 -0700 |
---|---|---|
committer | Wild Kat <wk@users.noreply.github.com> | 2018-09-17 23:27:05 +0200 |
commit | 68dd4193d1248169a7d8d131971d1ad674f24afa (patch) | |
tree | 23f902691d1b2a89fc8bd7d7b80437b5eb548d57 /lib | |
parent | c6d7ca6e1457754adfbf06cf22b12c4efa55c481 (diff) |
tmos: ZebOS configuration should only be captured if it's configured (#1528)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/model/tmos.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |