Skip to content

Commit 5292ec9

Browse files
authored
[dualtor] Fix loganalyzer not exist issue (#18674)
Signed-off-by: Longxiang Lyu <[email protected]>
1 parent abd3049 commit 5292ec9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/dualtor_io/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def setup_loganalyzer(loganalyzer):
3838
KERNEL_BOOTUP_SYSLOG = "kernel: [ 0.000000] Linux version"
3939

4040
def _setup_loganalyzer(duthost, collect_only=False, collect_from_bootup=False):
41+
if not loganalyzer:
42+
return
4143
if collect_only:
4244
loganalyzer[duthost.hostname].match_regex = []
4345
loganalyzer[duthost.hostname].expect_regex = []

0 commit comments

Comments
 (0)