diff --git a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzer.py b/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzer.py index 6f96e24f..0d5296e0 100755 --- a/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzer.py +++ b/plugins/ufm_log_analyzer_plugin/src/loganalyze/log_analyzer.py @@ -386,8 +386,12 @@ def create_analyzer(parsed_args, full_extracted_logs_list, "More than 5 events burst over a minute", critical_events_headers)) - for cur_telemetry in \ - [ibdianget_2_ports_primary_analyzer, ibdianget_2_ports_secondary_analyzer]: + existing_telemetry_analyzers = [] + for telemetry_analyzer in [ibdianget_2_ports_primary_analyzer, ibdianget_2_ports_secondary_analyzer]: + if telemetry_analyzer: + existing_telemetry_analyzers.append(telemetry_analyzer) + + for cur_telemetry in existing_telemetry_analyzers: dataframes_for_pdf.append((f"{cur_telemetry.telemetry_type} Telemetry iteration time", cur_telemetry.get_last_iterations_time_stats())) dataframes_for_pdf.append((f"{cur_telemetry.telemetry_type} "