Merge pull request #8497 from hashicorp/td-command_build-doc-fixes

command/build: Fix URL to HCL2 syntax guide
This commit is contained in:
Wilken Rivera 2019-12-17 15:49:03 -05:00 committed by GitHub
commit d10a702ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -129,7 +129,7 @@ func (c *BuildCommand) GetBuilds(path string) ([]packer.Build, int) {
isHCLLoaded, err := isHCLLoaded(path)
if path != "-" && err != nil {
c.Ui.Error(fmt.Sprintf("Could not tell wether %s is hcl enabled: %s", path, err))
c.Ui.Error(fmt.Sprintf("could not tell whether %s is hcl enabled: %s", path, err))
return nil, 1
}
if isHCLLoaded {
@ -137,9 +137,10 @@ func (c *BuildCommand) GetBuilds(path string) ([]packer.Build, int) {
}
c.Ui.Say(`Legacy JSON Configuration Will Be Used.
The template will be parsed in the legacy configuration style. This style
Will continue to work but users are encouraged to move to the new style,
See: https://packer.io/guides/hcl2 .`)
The template will be parsed in the legacy configuration style. This style
will continue to work but users are encouraged to move to the new style.
See: https://packer.io/guides/hcl
`)
// Parse the template
var tpl *template.Template