rename KnifeChefTemplate to KnifeTemplate
This commit is contained in:
parent
4847e891b0
commit
7b3224f3c7
|
@ -97,7 +97,7 @@ type InstallChefTemplate struct {
|
|||
Sudo bool
|
||||
}
|
||||
|
||||
type KnifeChefTemplate struct {
|
||||
type KnifeTemplate struct {
|
||||
Sudo bool
|
||||
Flags string
|
||||
Args string
|
||||
|
@ -499,7 +499,7 @@ func (p *Provisioner) knifeExec(ui packer.Ui, comm packer.Communicator, node str
|
|||
"-c", knifeConfigPath,
|
||||
}
|
||||
|
||||
p.config.ctx.Data = &KnifeChefTemplate{
|
||||
p.config.ctx.Data = &KnifeTemplate{
|
||||
Sudo: !p.config.PreventSudo,
|
||||
Flags: strings.Join(flags, " "),
|
||||
Args: strings.Join(args, " "),
|
||||
|
|
Loading…
Reference in New Issue