def make_rpc_report(repo_dir, old_commit, new_commit,<EOL>args):
<EOL>try:<EOL><INDENT>osa_differ.validate_commit_range(repo_dir, old_commit, new_commit)<EOL><DEDENT>except exceptions.InvalidCommitRangeException:<EOL><INDENT>pass<EOL><DEDENT>commits = osa_differ.get_commits(repo_dir, old_commit, new_commit)<EOL>template_vars = {<EOL>'<STR_LIT:args>': args,<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': commits,<EOL>'<STR_LIT>': osa_differ.get_commit_url(args.rpc_repo_url),<EOL>'<STR_LIT>': old_commit,<EOL>'<STR_LIT>': new_commit<EOL>}<EOL>return render_template('<STR_LIT>', template_vars)<EOL>
Create initial RST report header for OpenStack-Ansible.