14260: secret_mounts works with runtime_token (really this time)
authorPeter Amstutz <pamstutz@veritasgenetics.com>
Mon, 15 Oct 2018 21:11:11 +0000 (17:11 -0400)
committerPeter Amstutz <pamstutz@veritasgenetics.com>
Mon, 15 Oct 2018 21:11:51 +0000 (17:11 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz@veritasgenetics.com>

services/api/app/controllers/arvados/v1/containers_controller.rb

index 98b987639bea61574423ae34322351569c803175..0403b8822f1423e148df1eb76bcc707b46c712d6 100644 (file)
@@ -70,7 +70,7 @@ class Arvados::V1::ContainersController < ApplicationController
 
   def secret_mounts
     c = Container.for_current_token
-    if @object && c && @object.uuid == c.uuid
+    if @object && c && @object.uuid == c.first.uuid
       send_json({"secret_mounts" => @object.secret_mounts})
     else
       send_error("Token is not associated with this container.", status: 403)