client/state: missing deploy status isn't an error
Fixes TestClient_SaveRestoreState
This commit is contained in:
parent
c84998e996
commit
ee23bdafbc
|
@ -275,6 +275,11 @@ func (s *BoltStateDB) GetDeploymentStatus(allocID string) (*structs.AllocDeploym
|
|||
return allocBkt.Get(allocDeployStatusKey, &entry)
|
||||
})
|
||||
|
||||
// It's valid for this field to be nil/missing
|
||||
if boltdd.IsErrNotFound(err) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue