Revision ec79568d tools/burnin
b/tools/burnin | ||
---|---|---|
323 | 323 |
else: |
324 | 324 |
names = [] |
325 | 325 |
try: |
326 |
op = opcodes.OpQueryNodes(output_fields=["name", "offline"], names=names) |
|
326 |
op = opcodes.OpQueryNodes(output_fields=["name", "offline"], |
|
327 |
names=names, use_locking=True) |
|
327 | 328 |
result = self.ExecOp(op) |
328 | 329 |
except errors.GenericError, err: |
329 | 330 |
err_code, msg = cli.FormatError(err) |
... | ... | |
484 | 485 |
Log("instance %s" % instance, indent=1) |
485 | 486 |
# read the full name of the instance |
486 | 487 |
nam_op = opcodes.OpQueryInstances(output_fields=["name"], |
487 |
names=[instance])
|
|
488 |
names=[instance], use_locking=True)
|
|
488 | 489 |
full_name = self.ExecOp(nam_op)[0][0] |
489 | 490 |
|
490 | 491 |
if self.opts.iallocator: |
Also available in: Unified diff