Skip to content

Commit

Permalink
backend/manta: Manta Backend was not dealing with a ResourceNotFound
Browse files Browse the repository at this point in the history
Fixes: #17314

We now deal correctly with the creation of the state file - we were
not dealing well with a ResourceNotFound error

Now that this has been changed around, we try and create the statefile
and if there is an error, we look for an existing statefile - previously
this was not the order of operations
  • Loading branch information
stack72 committed Mar 12, 2018
1 parent 9cef467 commit a6f76aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/remote-state/manta/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 106,7 @@ func (c *RemoteClient) Lock(info *state.LockInfo) (string, error) {
lockErr := &state.LockError{}
lockInfo, err := c.getLockInfo()
if err != nil {
if tritonErrors.IsResourceNotFound(err) {
if !tritonErrors.IsResourceNotFound(err) {
lockErr.Err = fmt.Errorf("failed to retrieve lock info: %s", err)
return "", lockErr
}
Expand Down

0 comments on commit a6f76aa

Please sign in to comment.