1
0

fix: do not change default global timeouts with command line params

This commit is contained in:
dump_stack() 2024-10-05 20:35:44 +00:00
parent 5fcc874985
commit c3e5a138b4
Signed by: dump_stack
GPG Key ID: C9905BA72B5E02BB

View File

@ -240,13 +240,11 @@ func (cmd *PewCmd) Run(g *Globals) (err error) {
if cmd.QemuTimeout != 0 {
log.Info().Msgf("Set qemu timeout to %s", cmd.QemuTimeout)
g.Config.Qemu.Timeout.Duration = cmd.QemuTimeout
ka.Qemu.Timeout.Duration = cmd.QemuTimeout
}
if cmd.DockerTimeout != 0 {
log.Info().Msgf("Set docker timeout to %s", cmd.DockerTimeout)
g.Config.Docker.Timeout.Duration = cmd.DockerTimeout
ka.Docker.Timeout.Duration = cmd.DockerTimeout
}