Tweaked debug SSH private key file name for vbox.
This commit is contained in:
parent
f8db84334d
commit
01c98f3d82
|
@ -48,7 +48,6 @@ func (s *StepSshKeyPair) Run(_ context.Context, state multistep.StateBag) multis
|
||||||
|
|
||||||
ui.Say("Creating ephemeral key pair for SSH communicator...")
|
ui.Say("Creating ephemeral key pair for SSH communicator...")
|
||||||
|
|
||||||
|
|
||||||
kp, err := ssh.NewKeyPairBuilder().
|
kp, err := ssh.NewKeyPairBuilder().
|
||||||
SetName(fmt.Sprintf("packer_%s", uuid.TimeOrderedUUID())).
|
SetName(fmt.Sprintf("packer_%s", uuid.TimeOrderedUUID())).
|
||||||
Build()
|
Build()
|
||||||
|
|
|
@ -224,7 +224,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
||||||
},
|
},
|
||||||
&vboxcommon.StepSshKeyPair{
|
&vboxcommon.StepSshKeyPair{
|
||||||
Debug: b.config.PackerDebug,
|
Debug: b.config.PackerDebug,
|
||||||
DebugKeyPath: fmt.Sprintf("virtualbox_%s.pem", b.config.PackerBuildName),
|
DebugKeyPath: fmt.Sprintf("%s.pem", b.config.PackerBuildName),
|
||||||
Comm: &b.config.Comm,
|
Comm: &b.config.Comm,
|
||||||
},
|
},
|
||||||
new(vboxcommon.StepSuppressMessages),
|
new(vboxcommon.StepSuppressMessages),
|
||||||
|
|
|
@ -66,7 +66,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
||||||
},
|
},
|
||||||
&vboxcommon.StepSshKeyPair{
|
&vboxcommon.StepSshKeyPair{
|
||||||
Debug: b.config.PackerDebug,
|
Debug: b.config.PackerDebug,
|
||||||
DebugKeyPath: fmt.Sprintf("virtualbox_%s.pem", b.config.PackerBuildName),
|
DebugKeyPath: fmt.Sprintf("%s.pem", b.config.PackerBuildName),
|
||||||
Comm: &b.config.Comm,
|
Comm: &b.config.Comm,
|
||||||
},
|
},
|
||||||
&vboxcommon.StepDownloadGuestAdditions{
|
&vboxcommon.StepDownloadGuestAdditions{
|
||||||
|
|
Loading…
Reference in New Issue