Update diagnostic detail to display list of PostProcessors (#10564)
This commit is contained in:
parent
ed091163be
commit
8ccd164f25
|
@ -167,7 +167,7 @@ func (cfg *PackerConfig) initializeBlocks() hcl.Diagnostics {
|
|||
diags = append(diags, &hcl.Diagnostic{
|
||||
Summary: fmt.Sprintf("Unknown "+buildPostProcessorLabel+" type %q", ppBlock.PType),
|
||||
Subject: ppBlock.HCL2Ref.TypeRange.Ptr(),
|
||||
Detail: fmt.Sprintf("known "+buildPostProcessorLabel+"s: %v", cfg.parser.PluginConfig.Provisioners.List()),
|
||||
Detail: fmt.Sprintf("known "+buildPostProcessorLabel+"s: %v", cfg.parser.PluginConfig.PostProcessors.List()),
|
||||
Severity: hcl.DiagError,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue