From c3e5a138b4f38be3752fe0f0a904c6a8788b82b9 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sat, 5 Oct 2024 20:35:44 +0000 Subject: [PATCH] fix: do not change default global timeouts with command line params --- cmd/pew.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/pew.go b/cmd/pew.go index 29d4fc9..8a2e87f 100644 --- a/cmd/pew.go +++ b/cmd/pew.go @@ -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 }