aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/mgrconfig
diff options
context:
space:
mode:
authorPimyn Girgis <pimyn@google.com>2025-11-04 15:56:10 +0000
committerTahuti <pimyn@google.com>2025-11-04 18:13:13 +0000
commitb60a8598abc148e1758ec80152898ae6ac011226 (patch)
treece0642c62c031043156e6bb9ca7084704081859c /pkg/mgrconfig
parent72925e09143f010e594be7bcb6c257e822b2252c (diff)
pkg/mgrconfig: ensure reproduce is set to false when type is set to none
Diffstat (limited to 'pkg/mgrconfig')
-rw-r--r--pkg/mgrconfig/load.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/mgrconfig/load.go b/pkg/mgrconfig/load.go
index b92d6a421..4e01cbd5f 100644
--- a/pkg/mgrconfig/load.go
+++ b/pkg/mgrconfig/load.go
@@ -209,6 +209,11 @@ func Complete(cfg *Config) error {
}
cfg.initTimeouts()
cfg.VMLess = cfg.Type == "none"
+
+ if cfg.VMLess && cfg.Reproduce {
+ return fmt.Errorf("if config param type is none, reproduce must be false")
+ }
+
return nil
}