From 361a175fc9c8ff80016bae86c3a437554d1f797c Mon Sep 17 00:00:00 2001 From: Oscar Medina Date: Sun, 28 Jan 2018 07:49:58 -0800 Subject: [PATCH] Removed static value from code The parameter within the contains() should not be hard-coded, using $meta_name variable value. --- contrib/azure-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/azure-setup.sh b/contrib/azure-setup.sh index 7e6817e74..f30da9693 100755 --- a/contrib/azure-setup.sh +++ b/contrib/azure-setup.sh @@ -155,7 +155,7 @@ createApplication() { if [ "$azure_client_id" != "" ]; then echo "==> application already exist, grab appId" - azure_client_id=$(az ad app list | jq -r '.[] | select(.displayName | contains("spfarmpacker")) .appId') + azure_client_id=$(az ad app list | jq -r '.[] | select(.displayName | contains("'$meta_name'")) .appId') else echo "==> application does not exist" azure_client_id=$(az ad app create --display-name $meta_name --identifier-uris http://$meta_name --homepage http://$meta_name --password $azure_client_secret | jq -r .appId)