Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
use even better method :)
Browse files Browse the repository at this point in the history
  • Loading branch information
joschi36 authored Feb 4, 2021
1 parent c59db19 commit c0a6194
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/modules/helm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c0a6194

Please sign in to comment.