From bb265113670c58365271b8290d8c3e6ba9130152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Tue, 12 Dec 2023 10:51:50 +0100 Subject: [PATCH] chore(gpg_secretstore): remove unused imports and disable lint for false-positive --- plugins/module_utils/gpg_utils.py | 1 - plugins/modules/gpg_secretstore.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/module_utils/gpg_utils.py b/plugins/module_utils/gpg_utils.py index 4b25ab5..46d3373 100644 --- a/plugins/module_utils/gpg_utils.py +++ b/plugins/module_utils/gpg_utils.py @@ -13,7 +13,6 @@ __metaclass__ = type import os.path from pathlib import Path from typing import Union -import traceback try: diff --git a/plugins/modules/gpg_secretstore.py b/plugins/modules/gpg_secretstore.py index 02f96d9..421460b 100644 --- a/plugins/modules/gpg_secretstore.py +++ b/plugins/modules/gpg_secretstore.py @@ -184,7 +184,6 @@ warning: """ import hashlib -import traceback from pathlib import Path from ansible.module_utils.basic import AnsibleModule, missing_required_lib @@ -209,7 +208,7 @@ else: GIT_IMPORT_ERROR = None try: - import gnupg + import gnupg # pylint: disable=unused-import except ImportError as imp_exc: GNUPG_IMPORT_ERROR = imp_exc else: