Revision 346c3037 lib/cli.py

b/lib/cli.py
233 233
  "ParseTimespec",
234 234
  "RunWhileClusterStopped",
235 235
  "SubmitOpCode",
236
  "SubmitOpCodeToDrainedQueue",
236 237
  "SubmitOrSend",
237 238
  "UsesRPC",
238 239
  # Formatting functions
......
2274 2275
  return op_results[0]
2275 2276

  
2276 2277

  
2278
def SubmitOpCodeToDrainedQueue(op):
2279
  """Forcefully insert a job in the queue, even if it is drained.
2280

  
2281
  """
2282
  cl = GetClient()
2283
  job_id = cl.SubmitJobToDrainedQueue([op])
2284
  op_results = PollJob(job_id, cl=cl)
2285
  return op_results[0]
2286

  
2287

  
2277 2288
def SubmitOrSend(op, opts, cl=None, feedback_fn=None):
2278 2289
  """Wrapper around SubmitOpCode or SendJob.
2279 2290

  

Also available in: Unified diff