From 890d2ddabb153c085c897b21420edc30010c14bf Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 14 Aug 2024 09:48:08 +0200 Subject: pkg/instance: adjust FuzzingVMs in OverrideVMCount() We should not be setting FuzzingVMs to a value below the overall VM count. --- pkg/instance/instance.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/instance') diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index ff7bb9f0d..c5e53aa6d 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -212,6 +212,7 @@ func OverrideVMCount(cfg *mgrconfig.Config, n int) error { return fmt.Errorf("failed to serialize VM config: %w", err) } cfg.VM = vmCfg + cfg.FuzzingVMs = min(cfg.FuzzingVMs, n) return nil } -- cgit mrf-deployment