As opposed to SubmitOrSend, the SubmitOpCode function is
called also by commands not supporting submit options. Hence
only inspect these options, if they are actually present.
Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Thomas Thrainer <thomasth@google.com>
SetGenericOpcodeOpts([op], opts)
job_id = SendJob([op], cl=cl)
- if opts.print_jobid:
+ if hasattr(opts, "print_jobid") and opts.print_jobid:
ToStdout("%d" % job_id)
op_results = PollJob(job_id, cl=cl, feedback_fn=feedback_fn,