From 2f449385c161a6b3a3198a322c9c80d647f5dcaf Mon Sep 17 00:00:00 2001 From: b0z02003 <100960797+b0z02003@users.noreply.github.com> Date: Sun, 22 Dec 2024 19:06:07 +0100 Subject: [PATCH] Apply suggestions from code review fix: linter issues Co-authored-by: Bikouo Aubin <79859644+abikouo@users.noreply.github.com> --- plugins/modules/helm.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/plugins/modules/helm.py b/plugins/modules/helm.py index 23dbf83065..b1f4a8e8f2 100644 --- a/plugins/modules/helm.py +++ b/plugins/modules/helm.py @@ -540,7 +540,9 @@ def deploy( if reset_then_reuse_values: helm_version = module.get_helm_version() if LooseVersion(helm_version) < LooseVersion("3.14.0"): - module.warn("helm support option --reset-then-reuse-values starting release >= 3.14.0") + module.warn( + "helm support option --reset-then-reuse-values starting release >= 3.14.0" + ) else: deploy_command += " --reset-then-reuse-values" @@ -699,9 +701,13 @@ def helmdiff_check( helm_diff_version = get_plugin_version("diff") helm_version = module.get_helm_version() if LooseVersion(helm_diff_version) < LooseVersion("3.9.12"): - module.warn("helm diff support option --reset-then-reuse-values starting release >= 3.9.12") + module.warn( + "helm diff support option --reset-then-reuse-values starting release >= 3.9.12" + ) elif LooseVersion(helm_version) < LooseVersion("3.14.0"): - module.warn("helm support option --reset-then-reuse-values starting release >= 3.14.0") + module.warn( + "helm support option --reset-then-reuse-values starting release >= 3.14.0" + ) else: cmd += " --reset-then-reuse-values"