Make “gnt-debug delay” work again
authorMichael Hanselmann <hansmi@google.com>
Mon, 28 Jul 2008 09:16:17 +0000 (09:16 +0000)
committerMichael Hanselmann <hansmi@google.com>
Mon, 28 Jul 2008 09:16:17 +0000 (09:16 +0000)
The old API is no longer working.

Reviewed-by: ultrotter

scripts/gnt-debug

index f57dd5d..b9aba60 100755 (executable)
@@ -44,10 +44,8 @@ def Delay(opts, args):
   op = opcodes.OpTestDelay(duration=delay,
                            on_master=opts.on_master,
                            on_nodes=opts.on_nodes)
+  SubmitOpCode(op)
 
-  job = opcodes.Job(op_list=[op])
-  jid = SubmitJob(job)
-  print "Job id", jid
   return 0