From: Todd Malsbary Date: Mon, 28 Jun 2021 19:54:46 +0000 (-0700) Subject: Fix error when attempting to remove missing webhook X-Git-Tag: 0.9.0~11 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=451a99f567113893c346c2ed4dcc9bc99441a26e;p=multicloud%2Fk8s.git Fix error when attempting to remove missing webhook Issue-ID: MULTICLOUD-1370 Signed-off-by: Todd Malsbary Change-Id: If3b71f64b5994bbe6bd68e2b620452f4081cd705 --- diff --git a/kud/hosting_providers/vagrant/installer.sh b/kud/hosting_providers/vagrant/installer.sh index 5535c31b..75472913 100755 --- a/kud/hosting_providers/vagrant/installer.sh +++ b/kud/hosting_providers/vagrant/installer.sh @@ -178,7 +178,7 @@ function install_addons { popd done # Remove Kata webhook if user didn't want it permanently installed - if ! [ "${enable_kata_webhook}" == "true" ]; then + if ! [ "${enable_kata_webhook}" == "true" ] && [ "${kata_webhook_deployed}" == "true" ]; then ansible-playbook $verbose -i $kud_inventory -e "base_dest=$HOME" \ -e "kata_webhook_runtimeclass=$kata_webhook_runtimeclass" \ $kud_playbooks/configure-kata-webhook-reset.yml \