mirror of https://github.com/docker/compose.git
Merge pull request #256 from docker/aci_fix_context_location
Use location flag in aci context creation only for group creation
This commit is contained in:
commit
a2cfcf1124
|
@ -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…
Reference in New Issue