diff --git a/plugins/modules/helm.py b/plugins/modules/helm.py index 1da12713..f9aad2be 100644 --- a/plugins/modules/helm.py +++ b/plugins/modules/helm.py @@ -407,9 +407,11 @@ def has_plugin(command, plugin): cmd = command + " plugin list" rc, out, err = run_helm(module, cmd) for line in out.splitlines(): - if line.lstrip().startswith(plugin): + if line.startswith("NAME"): + continue + name, _rest = line.split(None, 1) + if name == plugin: return True - return False def helmdiff_check(module, helm_cmd, release_name, chart_ref, release_values,