upcase job command parameters when passing to whjobmanager
authorTom Clegg <tom@clinicalfuture.com>
Sun, 17 Mar 2013 22:10:02 +0000 (15:10 -0700)
committerTom Clegg <tom@clinicalfuture.com>
Sun, 17 Mar 2013 22:10:02 +0000 (15:10 -0700)
script/dispatch_jobs.rb

index 246491db8c059ec8692b42706e5dd5012c15edd1..7f93de375b8edb75580d45e821b5e2375fad8a0b 100755 (executable)
@@ -77,7 +77,12 @@ class Dispatcher
       cmd_args << "id=#{job.uuid}"
       cmd_args << "mrfunction=#{job.command}"
       job.command_parameters.each do |k,v|
-        k = 'inputkey' if k == 'input'
+        k = k.to_s
+        if k == 'input'
+          k = 'inputkey'
+        else
+          k = k.upcase
+        end
         cmd_args << "#{k}=#{v}"
       end
       cmd_args << "revision=#{job.command_version}"