aboutsummaryrefslogtreecommitdiffstats
path: root/vm/gce
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-11-25 12:07:11 +0100
committerDmitry Vyukov <dvyukov@google.com>2024-11-25 11:18:31 +0000
commit7e02dfac6584de88e03df494ca500b59802d93eb (patch)
treeaf0a55b5e65966a5715f917383ca3d2f59982932 /vm/gce
parent36dfdd05f93ef886e289dd5cc91330d8ae1d0182 (diff)
vm: dedup VM count restriction in debug mode
Move the VM count restriction logic info vm package. This avoids lots of duplication, makes it supported for VM types that failed to do this, and allows to unify more VM count logic in future.
Diffstat (limited to 'vm/gce')
-rw-r--r--vm/gce/gce.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/vm/gce/gce.go b/vm/gce/gce.go
index dbed89bee..f9f5ded00 100644
--- a/vm/gce/gce.go
+++ b/vm/gce/gce.go
@@ -105,10 +105,6 @@ func Ctor(env *vmimpl.Env, consoleReadCmd string) (*Pool, error) {
if cfg.Count < 1 || cfg.Count > 1000 {
return nil, fmt.Errorf("invalid config param count: %v, want [1, 1000]", cfg.Count)
}
- if env.Debug && cfg.Count > 1 {
- log.Logf(0, "limiting number of VMs from %v to 1 in debug mode", cfg.Count)
- cfg.Count = 1
- }
if cfg.MachineType == "" {
return nil, fmt.Errorf("machine_type parameter is empty")
}