Remove redundant placeholder (#8503)
This commit is contained in:
parent
a6c56aa4e2
commit
9eda2031d2
|
@ -11,6 +11,8 @@
|
||||||
[GH-8342]
|
[GH-8342]
|
||||||
* builder/hyperone: Update builder schema and tags [GH-8444]
|
* builder/hyperone: Update builder schema and tags [GH-8444]
|
||||||
* builder/qemu: Add display template option for qemu. [GH-7676]
|
* builder/qemu: Add display template option for qemu. [GH-7676]
|
||||||
|
* builder/qemu: Disk Size is now read as a string to support units. [GH-8320]
|
||||||
|
[GH-7546]
|
||||||
* builder/qemu: Add fixer to convert disk size from int to string [GH-8390]
|
* builder/qemu: Add fixer to convert disk size from int to string [GH-8390]
|
||||||
* builder/qemu: Disk Size is now read as a string to support units. [GH-8320]
|
* builder/qemu: Disk Size is now read as a string to support units. [GH-8320]
|
||||||
[GH-7546]
|
[GH-7546]
|
||||||
|
|
|
@ -125,8 +125,6 @@ type KnifeTemplate struct {
|
||||||
func (p *Provisioner) ConfigSpec() hcldec.ObjectSpec { return p.config.FlatMapstructure().HCL2Spec() }
|
func (p *Provisioner) ConfigSpec() hcldec.ObjectSpec { return p.config.FlatMapstructure().HCL2Spec() }
|
||||||
|
|
||||||
func (p *Provisioner) Prepare(raws ...interface{}) error {
|
func (p *Provisioner) Prepare(raws ...interface{}) error {
|
||||||
// Create passthrough for build-generated data
|
|
||||||
p.config.ctx.Data = packer.BasicPlaceholderData()
|
|
||||||
err := config.Decode(&p.config, &config.DecodeOpts{
|
err := config.Decode(&p.config, &config.DecodeOpts{
|
||||||
Interpolate: true,
|
Interpolate: true,
|
||||||
InterpolateContext: &p.config.ctx,
|
InterpolateContext: &p.config.ctx,
|
||||||
|
|
|
@ -91,9 +91,6 @@ func (p *Provisioner) defaultExecuteCommand() string {
|
||||||
func (p *Provisioner) ConfigSpec() hcldec.ObjectSpec { return p.config.FlatMapstructure().HCL2Spec() }
|
func (p *Provisioner) ConfigSpec() hcldec.ObjectSpec { return p.config.FlatMapstructure().HCL2Spec() }
|
||||||
|
|
||||||
func (p *Provisioner) Prepare(raws ...interface{}) error {
|
func (p *Provisioner) Prepare(raws ...interface{}) error {
|
||||||
// Create passthrough for build-generated data
|
|
||||||
p.config.ctx.Data = packer.BasicPlaceholderData()
|
|
||||||
|
|
||||||
err := config.Decode(&p.config, &config.DecodeOpts{
|
err := config.Decode(&p.config, &config.DecodeOpts{
|
||||||
Interpolate: true,
|
Interpolate: true,
|
||||||
InterpolateContext: &p.config.ctx,
|
InterpolateContext: &p.config.ctx,
|
||||||
|
|
|
@ -154,8 +154,6 @@ type EnvVarsTemplate struct {
|
||||||
func (p *Provisioner) ConfigSpec() hcldec.ObjectSpec { return p.config.FlatMapstructure().HCL2Spec() }
|
func (p *Provisioner) ConfigSpec() hcldec.ObjectSpec { return p.config.FlatMapstructure().HCL2Spec() }
|
||||||
|
|
||||||
func (p *Provisioner) Prepare(raws ...interface{}) error {
|
func (p *Provisioner) Prepare(raws ...interface{}) error {
|
||||||
// Create passthrough for build-generated data
|
|
||||||
p.config.ctx.Data = packer.BasicPlaceholderData()
|
|
||||||
err := config.Decode(&p.config, &config.DecodeOpts{
|
err := config.Decode(&p.config, &config.DecodeOpts{
|
||||||
Interpolate: true,
|
Interpolate: true,
|
||||||
InterpolateContext: &p.config.ctx,
|
InterpolateContext: &p.config.ctx,
|
||||||
|
|
|
@ -148,9 +148,6 @@ type EnvVarsTemplate struct {
|
||||||
func (p *Provisioner) ConfigSpec() hcldec.ObjectSpec { return p.config.FlatMapstructure().HCL2Spec() }
|
func (p *Provisioner) ConfigSpec() hcldec.ObjectSpec { return p.config.FlatMapstructure().HCL2Spec() }
|
||||||
|
|
||||||
func (p *Provisioner) Prepare(raws ...interface{}) error {
|
func (p *Provisioner) Prepare(raws ...interface{}) error {
|
||||||
// Create passthrough for build-generated data
|
|
||||||
p.config.ctx.Data = packer.BasicPlaceholderData()
|
|
||||||
|
|
||||||
err := config.Decode(&p.config, &config.DecodeOpts{
|
err := config.Decode(&p.config, &config.DecodeOpts{
|
||||||
Interpolate: true,
|
Interpolate: true,
|
||||||
InterpolateContext: &p.config.ctx,
|
InterpolateContext: &p.config.ctx,
|
||||||
|
|
Loading…
Reference in New Issue