Merge pull request #5974 from boumenot/pr-azure-better-error-message

azure: better error message
This commit is contained in:
SwampDragons 2018-03-05 17:28:50 -08:00 committed by GitHub
commit 585e31e47a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -604,7 +604,7 @@ func assertRequiredParametersSet(c *Config, errs *packer.MultiError) {
}
if !xor(c.Location != "", c.BuildResourceGroupName != "") {
errs = packer.MultiErrorAppend(errs, fmt.Errorf("Must specify either a location to create the resource group in or an existing build_resource_group_name."))
errs = packer.MultiErrorAppend(errs, fmt.Errorf("Specify either a location to create the resource group in or an existing build_resource_group_name, but not both."))
}
if c.ManagedImageName == "" && c.ManagedImageResourceGroupName == "" {