17010: Don't double up --enable-reuse
authorPeter Amstutz <peter.amstutz@curii.com>
Thu, 22 Oct 2020 02:27:14 +0000 (22:27 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Fri, 23 Oct 2020 01:02:16 +0000 (21:02 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

apps/workbench/app/controllers/container_requests_controller.rb

index 62ec3e15073802f4f184ddbbb258263887d3b77b..9baf82795f0c0ee4bedabc688d7bf61fdfa973a0 100644 (file)
@@ -182,14 +182,14 @@ class ContainerRequestsController < ApplicationController
 
       # Pass the correct argument to arvados-cwl-runner command.
       if command[0] == 'arvados-cwl-runner'
-        command -= ['--disable-reuse']
+        command -= ["--disable-reuse", "--enable-reuse"]
         command.insert(1, '--enable-reuse')
       end
     else
       @object.use_existing = false
       # Pass the correct argument to arvados-cwl-runner command.
       if command[0] == 'arvados-cwl-runner'
-        command -= ['--enable-reuse']
+        command -= ["--disable-reuse", "--enable-reuse"]
         command.insert(1, '--disable-reuse')
       end
     end