mirror of
https://github.com/docker/compose.git
synced 2025-07-25 22:54:54 +02:00
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:
parent
c6f545e6a5
commit
309069f545
@ -77,10 +77,7 @@ func (helper contextCreateACIHelper) createContextData(ctx context.Context, opts
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
location := opts["aciLocation"]
|
location := *group.Location
|
||||||
if location == "" {
|
|
||||||
location = *group.Location
|
|
||||||
}
|
|
||||||
|
|
||||||
description := fmt.Sprintf("%s@%s", *group.Name, location)
|
description := fmt.Sprintf("%s@%s", *group.Name, location)
|
||||||
if opts["description"] != "" {
|
if opts["description"] != "" {
|
||||||
|
@ -179,6 +179,7 @@ func options(subscriptionID string, resourceGroupName string) map[string]string
|
|||||||
return map[string]string{
|
return map[string]string{
|
||||||
"aciSubscriptionID": subscriptionID,
|
"aciSubscriptionID": subscriptionID,
|
||||||
"aciResourceGroup": resourceGroupName,
|
"aciResourceGroup": resourceGroupName,
|
||||||
|
"aciLocation": "eastus",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user