def validate_rpc_sha(repo_dir, commit):
<EOL>try:<EOL><INDENT>osa_differ.validate_commits(repo_dir, [commit])<EOL><DEDENT>except exceptions.InvalidCommitException:<EOL><INDENT>log.debug("<STR_LIT>"<EOL>"<STR_LIT>".format(c=commit))<EOL>commit = '<STR_LIT>' + commit<EOL>osa_differ.validate_commits(repo_dir, [commit])<EOL><DEDENT>return commit<EOL>
Validate/update a SHA given for the rpc-openstack repo.