X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/8a7f1c613597fe431dafe1197b184b423d081c4d..f99010b2058cb2f2fc08e50fd475c473308b591f:/scripts/gnt-job diff --git a/scripts/gnt-job b/scripts/gnt-job index a174200..2e71bae 100755 --- a/scripts/gnt-job +++ b/scripts/gnt-job @@ -134,10 +134,13 @@ def ArchiveJobs(opts, args): """ client = GetClient() + rcode = 0 for job_id in args: - client.ArchiveJob(job_id) + if not client.ArchiveJob(job_id): + ToStderr("Failed to archive job with ID '%s'", job_id) + rcode = 1 - return 0 + return rcode def AutoArchiveJobs(opts, args):