mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
Changed Service Principal Creation sequence to comply with newer CLI reqs
This commit is contained in:
parent
3ccbb6ca91
commit
f7c6180ff7
1 changed files with 2 additions and 2 deletions
|
|
@ -159,10 +159,10 @@ createServicePrincipal() {
|
|||
echo "==> Creating service principal"
|
||||
# Azure CLI 0.10.2 introduced a breaking change, where appId must be supplied with the -a switch
|
||||
# prior version accepted appId as the only parameter without a switch
|
||||
newer_syntax = false
|
||||
newer_syntax=false
|
||||
IFS='.' read -ra azureversionsemver <<< "$azureversion"
|
||||
if [ ${azureversionsemver[0]} -ge 0 ] && [ ${azureversionsemver[1]} -ge 10 ] && [ ${azureversionsemver[2]} -ge 2 ]; then
|
||||
newer_syntax = true
|
||||
newer_syntax=true
|
||||
fi
|
||||
|
||||
if [ "${newer_syntax}" = true ]; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue