Compose each machine in the merge gate with its engine's contract, so moved modules are handed there as on the mesh (issue 969)
This commit is contained in:
@@ -1126,7 +1126,13 @@ func engineTakesHanded(ctx context.Context, inv *inventory.Inventory, node strin
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
return had && stated.Contract >= link.HandedContract, nil
|
||||
return takesHanded(stated, had), nil
|
||||
}
|
||||
|
||||
// takesHanded is whether a machine's newest statement (had: it ever stated one) is of an engine that writes a
|
||||
// filled file on the provisioner client's word alone.
|
||||
func takesHanded(stated inventory.NodeHealth, had bool) bool {
|
||||
return had && stated.Contract >= link.HandedContract
|
||||
}
|
||||
|
||||
// provisionerAccount is the account the provisioner's client runs as on this machine (novox/hq ADR 0349 §4): the user
|
||||
|
||||
Reference in New Issue
Block a user