def _flush_libvirt_console(self, pty):
    (out, err) = utils.execute('dd', ('if=%s' % pty), 'iflag=nonblock', run_as_root=True, check_exit_code=False)
    return out
def _flush_libvirt_console(self, pty):
    (out, err) = utils.execute('dd', ('if=%s' % pty), 'iflag=nonblock', run_as_root=True, check_exit_code=False)
    return out