From 8db0603fa5f4ec84f598344519064da20e4b256f Mon Sep 17 00:00:00 2001 From: johnpaul Date: Tue, 12 Dec 2023 18:17:11 +0100 Subject: [PATCH] update unless --- manifests/repo.pp | 4 ++-- metadata.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/repo.pp b/manifests/repo.pp index d8848b6..3547077 100644 --- a/manifests/repo.pp +++ b/manifests/repo.pp @@ -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}'": } } diff --git a/metadata.json b/metadata.json index 50fe713..ab78012 100644 --- a/metadata.json +++ b/metadata.json @@ -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",