mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
Apply suggestions from code review
Co-Authored-By: preetapan <preetha@hashicorp.com>
This commit is contained in:
committed by
Preetha Appan
parent
72dead7448
commit
a20ae598c7
@@ -1977,7 +1977,7 @@ func makeFailedAlloc(add *structs.Allocation, err error) *structs.Allocation {
|
||||
stripped.ID = add.ID
|
||||
stripped.NodeID = add.NodeID
|
||||
stripped.ClientStatus = structs.AllocClientStatusFailed
|
||||
stripped.ClientDescription = fmt.Sprintf("Unable to add allocation due to err: %v", err)
|
||||
stripped.ClientDescription = fmt.Sprintf("Unable to add allocation due to error: %v", err)
|
||||
|
||||
// Copy task states if it exists in the original allocation
|
||||
if add.TaskStates != nil {
|
||||
|
||||
@@ -720,7 +720,7 @@ func TestClient_RestoreError(t *testing.T) {
|
||||
}
|
||||
return true, nil
|
||||
}, func(err error) {
|
||||
t.Fatalf("err: %v", err)
|
||||
require.NoError(err)
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user