From d30268653fbb172807edc5ab2643ca44dd963549 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 12:47:56 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- plugins/module_utils/network/common/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/module_utils/network/common/utils.py b/plugins/module_utils/network/common/utils.py index e8404e0ec..fccb5b348 100644 --- a/plugins/module_utils/network/common/utils.py +++ b/plugins/module_utils/network/common/utils.py @@ -684,15 +684,15 @@ def __call__(self, value, variables=None, fail_on_undefined=True): if not fail_on_undefined: return None raise - + if value is not None: - # Special handling for values starting with + - if isinstance(value, str) and value.startswith('+'): + # Special handling for values starting with + + if isinstance(value, str) and value.startswith("+"): return value # Keep the + prefix intact return str(value) # Convert everything else to string else: return None - + def contains_vars(self, data): if isinstance(data, string_types): for marker in (