A-281: the switch key names the gate's own build through mesh-sdk's process, which the environment check allows
This commit is contained in:
@@ -17,6 +17,7 @@ import (
|
||||
mdc "git.novox.be/novox/mesh-delivery/modules/mesh-delivery-contracts/go/clients/meshdeliveryclient"
|
||||
seat "git.novox.be/novox/mesh-delivery/modules/mesh-delivery-contracts/go/seats/meshdelivery"
|
||||
"git.novox.be/novox/mesh-sdk/go/keys"
|
||||
"git.novox.be/novox/mesh-sdk/go/process"
|
||||
)
|
||||
|
||||
// oldDelivery is a delivery as the old section `deliveries` kept it, as far as the switch reads it.
|
||||
@@ -118,7 +119,7 @@ func (h *Holder) Switch() (opened, found int, err error) {
|
||||
}
|
||||
defer func() {
|
||||
if err == nil {
|
||||
err = h.Records.MarkSwitched(os.Getenv("MESH_FINGERPRINT"))
|
||||
err = h.Records.MarkSwitched(process.ReadOwnBuild(os.Getenv).String())
|
||||
}
|
||||
}()
|
||||
groups, err := h.inFlight()
|
||||
|
||||
Reference in New Issue
Block a user