Commit b28a3e8b authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

gnt-job: Print message from CancelJob to standard output

Reviewed-by: iustinp
parent fbf0262f
...@@ -173,8 +173,10 @@ def CancelJobs(opts, args): ...@@ -173,8 +173,10 @@ def CancelJobs(opts, args):
client = GetClient() client = GetClient()
for job_id in args: for job_id in args:
client.CancelJob(job_id) (success, msg) = client.CancelJob(job_id)
ToStdout(msg)
# TODO: Different exit value if not all jobs were canceled?
return 0 return 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment