Revision aa9f8167 scripts/gnt-job

b/scripts/gnt-job
134 134
  """
135 135
  client = GetClient()
136 136

  
137
  rcode = 0
137 138
  for job_id in args:
138
    client.ArchiveJob(job_id)
139
    if not client.ArchiveJob(job_id):
140
      ToStderr("Failed to archive job with ID '%s'", job_id)
141
      rcode = 1
139 142

  
140
  return 0
143
  return rcode
141 144

  
142 145

  
143 146
def AutoArchiveJobs(opts, args):

Also available in: Unified diff