Skip to content

Commit 8ffabdb

Browse files
committed
hcp: enable multibuild in registry
1 parent 0a59f3e commit 8ffabdb

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

internal/hcp/registry/hcl.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -93,18 +93,6 @@ func (h *HCLRegistry) VersionStatusSummary() {
9393

9494
func NewHCLRegistry(config *hcl2template.PackerConfig, ui sdkpacker.Ui) (*HCLRegistry, hcl.Diagnostics) {
9595
var diags hcl.Diagnostics
96-
if len(config.Builds) > 1 {
97-
diags = append(diags, &hcl.Diagnostic{
98-
Severity: hcl.DiagError,
99-
Summary: "Multiple " + buildLabel + " blocks",
100-
Detail: fmt.Sprintf("For HCP Packer Registry enabled builds, only one " + buildLabel +
101-
" block can be defined. Please remove any additional " + buildLabel +
102-
" block(s). If this " + buildLabel + " is not meant for the HCP Packer registry please " +
103-
"clear any HCP_PACKER_* environment variables."),
104-
})
105-
106-
return nil, diags
107-
}
10896

10997
registryConfig, rcDiags := config.GetHCPPackerRegistryBlock()
11098
diags = diags.Extend(rcDiags)

0 commit comments

Comments
 (0)