diff --git a/roles/git/hooks/files/post-receive-fedora-messaging b/roles/git/hooks/files/post-receive-fedora-messaging index 7332e527fb..c1606e07de 100644 --- a/roles/git/hooks/files/post-receive-fedora-messaging +++ b/roles/git/hooks/files/post-receive-fedora-messaging @@ -120,7 +120,7 @@ for line in lines: revs = [head.id] def _build_commit(rev): - if instance(rev, str): + if isinstance(rev, str): commit = repo.revparse_single(rev) else: commit = repo.revparse_single(rev.hex)