From 6e6f9541a3ca0502e7747b3ae49e6da6872cf8a7 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 13 Nov 2024 11:43:27 +0200 Subject: [PATCH] add pylint disable lines --- .../fluentd_telemetry_plugin/src/streaming_config_parser.py | 5 +++-- .../src/telemetry_attributes_manager.py | 1 + plugins/fluentd_telemetry_plugin/src/telemetry_parser.py | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/fluentd_telemetry_plugin/src/streaming_config_parser.py b/plugins/fluentd_telemetry_plugin/src/streaming_config_parser.py index feb9f1fb..3b6a4b03 100644 --- a/plugins/fluentd_telemetry_plugin/src/streaming_config_parser.py +++ b/plugins/fluentd_telemetry_plugin/src/streaming_config_parser.py @@ -1,3 +1,4 @@ +# pylint: disable=no-name-in-module,import-error import logging from utils.config_parser import ConfigParser @@ -8,9 +9,9 @@ class UFMTelemetryStreamingConfigParser(ConfigParser): """ # for debugging - config_file = "../conf/fluentd_telemetry_plugin.cfg" + # config_file = "../conf/fluentd_telemetry_plugin.cfg" - # config_file = "/config/fluentd_telemetry_plugin.cfg" # this path on the docker + config_file = "/config/fluentd_telemetry_plugin.cfg" # this path on the docker UFM_TELEMETRY_ENDPOINT_SECTION = "ufm-telemetry-endpoint" UFM_TELEMETRY_ENDPOINT_SECTION_HOST = "host" diff --git a/plugins/fluentd_telemetry_plugin/src/telemetry_attributes_manager.py b/plugins/fluentd_telemetry_plugin/src/telemetry_attributes_manager.py index aaf3aaa1..2ccbfa59 100644 --- a/plugins/fluentd_telemetry_plugin/src/telemetry_attributes_manager.py +++ b/plugins/fluentd_telemetry_plugin/src/telemetry_attributes_manager.py @@ -13,6 +13,7 @@ @author: Miryam Schwartz @date: Nov 13, 2024 """ +# pylint: disable=no-name-in-module,import-error import os from utils.utils import Utils diff --git a/plugins/fluentd_telemetry_plugin/src/telemetry_parser.py b/plugins/fluentd_telemetry_plugin/src/telemetry_parser.py index f124149b..45484bbd 100644 --- a/plugins/fluentd_telemetry_plugin/src/telemetry_parser.py +++ b/plugins/fluentd_telemetry_plugin/src/telemetry_parser.py @@ -17,6 +17,7 @@ from typing import List import requests +# pylint: disable=no-name-in-module,import-error from telemetry_constants import UFMTelemetryConstants from ufm_sdk_tools.src.xdr_utils import PortType,prepare_port_type_http_telemetry_filter from utils.logger import Logger, LOG_LEVELS