Prevent node change on update

This commit is contained in:
2025-10-16 22:35:29 +02:00
parent e7402f0029
commit 696a2cb18b
3 changed files with 59 additions and 1 deletions

View File

@@ -147,6 +147,11 @@ func (i *Process) SetOptions(options *CreateInstanceOptions) {
return
}
// Preserve the original nodes to prevent changing instance location
if i.options != nil && i.options.Nodes != nil {
options.Nodes = i.options.Nodes
}
// Validate and copy options
options.ValidateAndApplyDefaults(i.Name, i.globalInstanceSettings)