From 6c37f73e60368f1ecf8f1e88c74bc373b5ab7a26 Mon Sep 17 00:00:00 2001 From: jmv74211 Date: Tue, 25 Jan 2022 11:31:51 +0100 Subject: [PATCH] style: Apply PEP-8 style to some modules #2462 --- deps/wazuh_testing/wazuh_testing/db_interface/__init__.py | 1 - deps/wazuh_testing/wazuh_testing/db_interface/global_db.py | 1 - .../wazuh_testing/modules/vulnerability_detector/utils.py | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/deps/wazuh_testing/wazuh_testing/db_interface/__init__.py b/deps/wazuh_testing/wazuh_testing/db_interface/__init__.py index a403818699..3e5a899c94 100644 --- a/deps/wazuh_testing/wazuh_testing/db_interface/__init__.py +++ b/deps/wazuh_testing/wazuh_testing/db_interface/__init__.py @@ -13,7 +13,6 @@ CVE_DB_PATH = os.path.join(wazuh_testing.WAZUH_PATH, 'queue', 'vulnerabilities', 'cve.db') - def query_wdb(command): """Make queries to wazuh-db using the wdb socket. diff --git a/deps/wazuh_testing/wazuh_testing/db_interface/global_db.py b/deps/wazuh_testing/wazuh_testing/db_interface/global_db.py index 2008753361..8df9afafb9 100644 --- a/deps/wazuh_testing/wazuh_testing/db_interface/global_db.py +++ b/deps/wazuh_testing/wazuh_testing/db_interface/global_db.py @@ -85,4 +85,3 @@ def delete_agent(agent_id): agent_id (str): Agent ID. """ query_wdb(f"global sql DELETE FROM agent where id={int(agent_id)}") - diff --git a/deps/wazuh_testing/wazuh_testing/modules/vulnerability_detector/utils.py b/deps/wazuh_testing/wazuh_testing/modules/vulnerability_detector/utils.py index c51caeb5c3..33b25cb566 100644 --- a/deps/wazuh_testing/wazuh_testing/modules/vulnerability_detector/utils.py +++ b/deps/wazuh_testing/wazuh_testing/modules/vulnerability_detector/utils.py @@ -105,7 +105,7 @@ def calculate_severity_from_score(base_score, cvss): return severity -def find_cve_severity_score (cve_array, cve_id): +def find_cve_severity_score(cve_array, cve_id): """Get the CVE severity and score. Args: