'output the result of a command run'

def _command_generic_msg(self, host, result, caption):

    buf = ('%s    |    %s    |    rc=%s    >>\n' % (host, caption, result.get('rc', (-1))))
    buf += result.get('stdout', '')
    buf += result.get('stderr', '')
    buf += result.get('msg', '')
    return (buf + '\n')
