Aside from the two special meta-arguments "connection" and "provisioner"
this is just our standard mapping from schema to conversion rules, using
the provisioner's configuration schema.
Detail:"A provisioner block must have one label: the provisioner type.",
Subject:&declRange,
})
returndiags
}
typeName:=item.Keys[1].Token.Value().(string)
schema:=an.ProvisionerSchemas[typeName]
ifschema==nil{
// This message is assuming that if the user _is_ using a third-party
// provisioner plugin they already know how to install it for normal
// use and so we don't need to spell out those instructions in detail
// here.
diags=diags.Append(&hcl2.Diagnostic{
Severity:hcl2.DiagError,
Summary:"Unknown provisioner type",
Detail:fmt.Sprintf("The provisioner type %q is not supported. If this is a third-party plugin, make sure its plugin executable is available in one of the usual plugin search paths.",typeName),