If use options '--my-queue' and '-o' at the same time,
the output job file will not contain the value of the
covered field 'queue'. So pass the 'jobs' not 'job_hash'.
Signed-off-by: Ren Wen <15991987063(a)163.com>
---
sbin/submit | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbin/submit b/sbin/submit
index be588bed..9510d53d 100755
--- a/sbin/submit
+++ b/sbin/submit
@@ -108,6 +108,7 @@ ARGV.each do |jobfile|
jobs = Job2sh.new
jobs.cmdline_defaults = opt_cmdline_defaults
jobs.overrides = opt_set_key_value
+ add_my_queue(jobs) if opt_my_queue
jobs.load(jobfile, true) || next
jobs[:expand_params] = true
jobs['testbox'] = opt_set_key_value['testbox'] if opt_set_key_value['testbox']
@@ -144,7 +145,6 @@ ARGV.each do |jobfile|
job_hash_list << job_hash
job_hash = job_hash.merge(sh_hash)
- add_my_queue(job_hash) if opt_my_queue
# save job to yaml
if opt_output_dir
prefix = File.join(opt_output_dir, File.basename(jobfile, '.yaml'))
--
2.23.0