Use location flag in aci context creation only for group creation (default eastus). Once group has been created/selected, use group location.

This commit is contained in:
Guillaume Tardif 2020-06-21 09:35:49 +02:00
parent c6f545e6a5
commit 309069f545
2 changed files with 2 additions and 4 deletions

View File

@ -77,10 +77,7 @@ func (helper contextCreateACIHelper) createContextData(ctx context.Context, opts
}
}
location := opts["aciLocation"]
if location == "" {
location = *group.Location
}
location := *group.Location
description := fmt.Sprintf("%s@%s", *group.Name, location)
if opts["description"] != "" {

View File

@ -179,6 +179,7 @@ func options(subscriptionID string, resourceGroupName string) map[string]string
return map[string]string{
"aciSubscriptionID": subscriptionID,
"aciResourceGroup": resourceGroupName,
"aciLocation": "eastus",
}
}