Skip to content

Commit

Permalink
update unless
Browse files Browse the repository at this point in the history
  • Loading branch information
JP-Odido committed Dec 12, 2023
1 parent 10068ce commit 8db0603
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@
)
$exec_repo = "helm repo add ${helm_repo_add_flags}"
if $repo_config != undef {
$unless_repo = "helm repo list --repository-config ${repo_config} | awk '{if (\$1 == \"${repo_name}\") exit 0}'"
$unless_repo = "helm repo list --repository-config ${repo_config} | awk '{if(NR>1)print \$1}' | grep -w ${repo_name}"
} else {
$unless_repo = "helm repo list | awk '{if (\$1 == \"${repo_name}\") exit 0}'"
$unless_repo = "helm repo list | awk '{if(NR>1)print \$1}' | grep -w ${repo_name}"
}
notify { "unless_repo -> '${unless_repo}'": }
}
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "puppetlabs-helm",
"version": "4.1.16",
"version": "4.1.17",
"author": "puppetlabs",
"summary": "A module to install Helm, a kubernetes package manager",
"license": "Apache-2.0",
Expand Down

0 comments on commit 8db0603

Please sign in to comment.