Skip to content

Commit

Permalink
fixup! Pass ssh private key path to podman
Browse files Browse the repository at this point in the history
  • Loading branch information
cfergeau committed Nov 27, 2024
1 parent 1c45228 commit 7cc42a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/machinedriver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ func (d *Driver) initOpts() *define.InitOptions {
initOpts.Volumes = defaultConfig.Machine.Volumes.Get()
*/
initOpts.Username = "core"
initOpts.SSHIdentityPath = d.VMDriver.SSHIdentityPath
initOpts.SSHIdentityPath = d.VMDriver.SSHConfig.IdentityPath
if d.VMDriver.SSHConfig.RemoteUsername != "" {
initOpts.Username = d.VMDriver.SSHConfig.RemoteUsername
}
initOpts.Image = d.getDiskPath()
initOpts.Volumes = []string{}
initOpts.USBs = []string{}
Expand Down

0 comments on commit 7cc42a0

Please sign in to comment.