Revision d45a824b lib/client/gnt_job.py
b/lib/client/gnt_job.py | ||
---|---|---|
102 | 102 |
|
103 | 103 |
qfilter = qlang.MakeSimpleFilter("status", opts.status_filter) |
104 | 104 |
|
105 |
cl = GetClient(query=True) |
|
106 |
|
|
105 | 107 |
return GenericList(constants.QR_JOB, selected_fields, args, None, |
106 | 108 |
opts.separator, not opts.no_headers, |
107 | 109 |
format_override=_JOB_LIST_FORMAT, verbose=opts.verbose, |
108 | 110 |
force_filter=opts.force_filter, namefield="id", |
109 |
qfilter=qfilter, isnumeric=True) |
|
111 |
qfilter=qfilter, isnumeric=True, cl=cl)
|
|
110 | 112 |
|
111 | 113 |
|
112 | 114 |
def ListJobFields(opts, args): |
... | ... | |
119 | 121 |
@return: the desired exit code |
120 | 122 |
|
121 | 123 |
""" |
124 |
cl = GetClient(query=True) |
|
125 |
|
|
122 | 126 |
return GenericListFields(constants.QR_JOB, args, opts.separator, |
123 |
not opts.no_headers) |
|
127 |
not opts.no_headers, cl=cl)
|
|
124 | 128 |
|
125 | 129 |
|
126 | 130 |
def ArchiveJobs(opts, args): |
... | ... | |
292 | 296 |
] |
293 | 297 |
|
294 | 298 |
qfilter = qlang.MakeSimpleFilter("id", _ParseJobIds(args)) |
295 |
result = GetClient().Query(constants.QR_JOB, selected_fields, qfilter).data |
|
299 |
cl = GetClient(query=True) |
|
300 |
result = cl.Query(constants.QR_JOB, selected_fields, qfilter).data |
|
296 | 301 |
|
297 | 302 |
first = True |
298 | 303 |
|
Also available in: Unified diff