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:
Guillaume Tardif 2020-06-22 10:18:00 +02:00 committed by GitHub
commit a2cfcf1124
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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",
}
}