Revision a79ef2a5 lib/server/masterd.py
b/lib/server/masterd.py | ||
---|---|---|
256 | 256 |
use_locking=use_locking) |
257 | 257 |
return self._Query(op) |
258 | 258 |
|
259 |
elif method == luxi.REQ_QUERY_GROUPS: |
|
260 |
(names, fields, use_locking) = args |
|
261 |
logging.info("Received group query request for %s", names) |
|
262 |
if use_locking: |
|
263 |
raise errors.OpPrereqError("Sync queries are not allowed", |
|
264 |
errors.ECODE_INVAL) |
|
265 |
op = opcodes.OpQueryGroups(names=names, output_fields=fields) |
|
266 |
return self._Query(op) |
|
267 |
|
|
259 | 268 |
elif method == luxi.REQ_QUERY_EXPORTS: |
260 | 269 |
nodes, use_locking = args |
261 | 270 |
if use_locking: |
Also available in: Unified diff