File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -93,18 +93,6 @@ func (h *HCLRegistry) VersionStatusSummary() {
9393
9494func 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 )
You can’t perform that action at this time.
0 commit comments