Revision ec79568d daemons/ganeti-masterd
b/daemons/ganeti-masterd | ||
---|---|---|
234 | 234 |
return queue.QueryJobs(job_ids, fields) |
235 | 235 |
|
236 | 236 |
elif method == luxi.REQ_QUERY_INSTANCES: |
237 |
(names, fields) = args |
|
238 |
op = opcodes.OpQueryInstances(names=names, output_fields=fields) |
|
237 |
(names, fields, use_locking) = args |
|
238 |
op = opcodes.OpQueryInstances(names=names, output_fields=fields, |
|
239 |
use_locking=use_locking) |
|
239 | 240 |
return self._Query(op) |
240 | 241 |
|
241 | 242 |
elif method == luxi.REQ_QUERY_NODES: |
242 |
(names, fields) = args |
|
243 |
op = opcodes.OpQueryNodes(names=names, output_fields=fields) |
|
243 |
(names, fields, use_locking) = args |
|
244 |
op = opcodes.OpQueryNodes(names=names, output_fields=fields, |
|
245 |
use_locking=use_locking) |
|
244 | 246 |
return self._Query(op) |
245 | 247 |
|
246 | 248 |
elif method == luxi.REQ_QUERY_EXPORTS: |
247 |
nodes = args |
|
248 |
op = opcodes.OpQueryExports(nodes=nodes) |
|
249 |
nodes, use_locking = args
|
|
250 |
op = opcodes.OpQueryExports(nodes=nodes, use_locking=use_locking)
|
|
249 | 251 |
return self._Query(op) |
250 | 252 |
|
251 | 253 |
elif method == luxi.REQ_QUERY_CONFIG_VALUES: |
Also available in: Unified diff