Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
fix: linter issues

Co-authored-by: Bikouo Aubin <[email protected]>
  • Loading branch information
b0z02003 and abikouo authored Dec 22, 2024
1 parent aaee3dd commit 2f44938
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions plugins/modules/helm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit 2f44938

Please sign in to comment.