Fix "undefined method `uuid' for nil:NilClass". closes #3576
authorTom Clegg <tom@curoverse.com>
Tue, 12 Aug 2014 18:15:51 +0000 (14:15 -0400)
committerTom Clegg <tom@curoverse.com>
Tue, 12 Aug 2014 18:15:51 +0000 (14:15 -0400)
services/api/app/models/job.rb

index fc445ae24edb5977a2092f7d92af86c300eb21ad..1ef0b797c044574a2b9eba72e1fcbd0aeba77e16 100644 (file)
@@ -191,7 +191,7 @@ class Job < ArvadosModel
       if self.cancelled_at and not self.cancelled_at_was
         self.cancelled_at = Time.now
         self.cancelled_by_user_uuid = current_user.uuid
-        self.cancelled_by_client_uuid = current_api_client.uuid
+        self.cancelled_by_client_uuid = current_api_client.andand.uuid
         @need_crunch_dispatch_trigger = true
       else
         self.cancelled_at = self.cancelled_at_was