mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 09:25:46 +03:00
Initial implementation
This commit is contained in:
committed by
Preetha Appan
parent
f92d3641aa
commit
15c3abf816
@@ -577,7 +577,9 @@ func (r *AllocRunner) Alloc() *structs.Allocation {
|
||||
// The health has been set
|
||||
if r.allocHealth != nil {
|
||||
if alloc.DeploymentStatus == nil {
|
||||
alloc.DeploymentStatus = &structs.AllocDeploymentStatus{}
|
||||
alloc.DeploymentStatus = &structs.AllocDeploymentStatus{
|
||||
Timestamp: time.Now(),
|
||||
}
|
||||
}
|
||||
alloc.DeploymentStatus.Healthy = helper.BoolToPtr(*r.allocHealth)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user