"github.com/hashicorp/go-multierror"
"github.com/hashicorp/terraform/config"
+ "github.com/hashicorp/terraform/configs/configschema"
"github.com/hashicorp/terraform/terraform"
)
return nil
}
+// GetConfigSchema implementation of terraform.ResourceProvisioner interface.
+func (p *Provisioner) GetConfigSchema() (*configschema.Block, error) {
+ return schemaMap(p.Schema).CoreConfigSchema(), nil
+}
+
// Apply implementation of terraform.ResourceProvisioner interface.
func (p *Provisioner) Apply(
o terraform.UIOutput,
}
sm := schemaMap(p.ConnSchema)
- diff, err := sm.Diff(nil, terraform.NewResourceConfig(c), nil, nil)
+ diff, err := sm.Diff(nil, terraform.NewResourceConfig(c), nil, nil, true)
if err != nil {
return err
}
// Build the configuration data. Doing this requires making a "diff"
// even though that's never used. We use that just to get the correct types.
configMap := schemaMap(p.Schema)
- diff, err := configMap.Diff(nil, c, nil, nil)
+ diff, err := configMap.Diff(nil, c, nil, nil, true)
if err != nil {
return err
}