From cff5fa7f25e60a9c08fd68306b4c11d81880901e Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Tue, 9 Feb 2010 15:43:23 +0100 Subject: [PATCH] Add the options attribute to cli.JobExecutor Signed-off-by: Iustin Pop Reviewed-by: Michael Hanselmann --- lib/cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cli.py b/lib/cli.py index d420361..f016ac4 100644 --- a/lib/cli.py +++ b/lib/cli.py @@ -1759,13 +1759,14 @@ class JobExecutor(object): GetResults() calls. """ - def __init__(self, cl=None, verbose=True): + def __init__(self, cl=None, verbose=True, opts=None): self.queue = [] if cl is None: cl = GetClient() self.cl = cl self.verbose = verbose self.jobs = [] + self.opts = opts def QueueJob(self, name, *ops): """Record a job for later submit. @@ -1773,6 +1774,7 @@ class JobExecutor(object): @type name: string @param name: a description of the job, will be used in WaitJobSet """ + SetGenericOpcodeOpts(ops, self.opts) self.queue.append((name, ops)) def SubmitPending(self): -- 1.7.10.4