From 057b04b90b7fe8a074b125ebb2665d1d22bf127f Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Tue, 7 Oct 2025 22:14:30 +0200 Subject: [PATCH] Address function-redefined. --- .pylintrc | 1 - plugins/module_utils/_common.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.pylintrc b/.pylintrc index a2864753..4349367f 100644 --- a/.pylintrc +++ b/.pylintrc @@ -391,7 +391,6 @@ disable=raw-checker-failed, consider-using-max-builtin, consider-using-with, fixme, - function-redefined, import-error, # TODO figure out why pylint cannot find the module invalid-name, keyword-arg-before-vararg, diff --git a/plugins/module_utils/_common.py b/plugins/module_utils/_common.py index 15bda4bc..bd488758 100644 --- a/plugins/module_utils/_common.py +++ b/plugins/module_utils/_common.py @@ -101,14 +101,14 @@ if not HAS_DOCKER_PY: # No Docker SDK for Python. Create a place holder client to allow # instantiation of AnsibleModule and proper error handing - class Client(object): # noqa: F811 + class Client(object): # noqa: F811, pylint: disable=function-redefined def __init__(self, **kwargs): pass - class APIError(Exception): # noqa: F811 + class APIError(Exception): # noqa: F811, pylint: disable=function-redefined pass - class NotFound(Exception): # noqa: F811 + class NotFound(Exception): # noqa: F811, pylint: disable=function-redefined pass