Merge pull request #17561 from stack72/manta-backend

backend/manta: Manta Backend was not dealing with a ResourceNotFound
This commit is contained in:
James Bardin 2018-03-13 11:51:01 -04:00 committed by GitHub
commit 69c323a9f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}