[ARVADOS] updated: 1.3.0-1088-gd5628158b
Git user
git at public.curoverse.com
Mon Jun 17 19:56:33 UTC 2019
Summary of changes:
services/api/app/models/container.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
via d5628158b1bebe822a4b8b160e0edecce364077b (commit)
from 2870aa32d3ae875aac19af2da1b2297b9e57689f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit d5628158b1bebe822a4b8b160e0edecce364077b
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date: Mon Jun 17 15:56:16 2019 -0400
15295: Make "lock by different token" a PermissionDeniedError
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>
diff --git a/services/api/app/models/container.rb b/services/api/app/models/container.rb
index 619abcc86..8999b3e14 100644
--- a/services/api/app/models/container.rb
+++ b/services/api/app/models/container.rb
@@ -368,7 +368,7 @@ class Container < ArvadosModel
def check_unlock
if state_was == Locked and state == Queued
if self.locked_by_uuid != current_api_client_authorization.uuid
- raise InvalidStateTransitionError.new("locked by a different token")
+ raise ArvadosModel::PermissionDeniedError.new("locked by a different token")
end
if self.lock_count >= Rails.configuration.Containers.MaxDispatchAttempts
self.state = Cancelled
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list