Commit d7b47a77 authored by Iustin Pop's avatar Iustin Pop
Browse files

Two small improvements to burnin

This tiny patch fixes the verbose option to actually work, and also when
creating instances it logs the secondary node too (even if this doesn't
apply for plain templates, it doesn't create an error).

Reviewed-by: imsnah
parent d8052456
......@@ -84,6 +84,8 @@ class Burner(object):
"""Acumulate feedback in our buffer."""
self._feed_buf.write(msg)
self._feed_buf.write("\n")
if self.opts.verbose:
Log(msg)
def ExecOp(self, op):
"""Execute an opcode and manage the exec buffer."""
......@@ -213,7 +215,7 @@ class Burner(object):
kernel_path=None,
initrd_path=None,
hvm_boot_order=None)
Log("- Add instance %s on node %s" % (instance, pnode))
Log("- Add instance %s on nodes %s/%s" % (instance, pnode, snode))
self.ExecOp(op)
self.to_rem.append(instance)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment