fix: do not change default global timeouts with command line params
This commit is contained in:
parent
5fcc874985
commit
c3e5a138b4
@ -240,13 +240,11 @@ func (cmd *PewCmd) Run(g *Globals) (err error) {
|
|||||||
|
|
||||||
if cmd.QemuTimeout != 0 {
|
if cmd.QemuTimeout != 0 {
|
||||||
log.Info().Msgf("Set qemu timeout to %s", cmd.QemuTimeout)
|
log.Info().Msgf("Set qemu timeout to %s", cmd.QemuTimeout)
|
||||||
g.Config.Qemu.Timeout.Duration = cmd.QemuTimeout
|
|
||||||
ka.Qemu.Timeout.Duration = cmd.QemuTimeout
|
ka.Qemu.Timeout.Duration = cmd.QemuTimeout
|
||||||
}
|
}
|
||||||
|
|
||||||
if cmd.DockerTimeout != 0 {
|
if cmd.DockerTimeout != 0 {
|
||||||
log.Info().Msgf("Set docker timeout to %s", cmd.DockerTimeout)
|
log.Info().Msgf("Set docker timeout to %s", cmd.DockerTimeout)
|
||||||
g.Config.Docker.Timeout.Duration = cmd.DockerTimeout
|
|
||||||
ka.Docker.Timeout.Duration = cmd.DockerTimeout
|
ka.Docker.Timeout.Duration = cmd.DockerTimeout
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user