From 1a472e85b40a74619f72d31eaa03780fa6423fe5 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Tue, 6 Feb 2024 10:29:15 -0800 Subject: [PATCH] Fix gerrit-delete-comment script The "real_author" key in may have been an artifact of local testing; it appears "author" is what we want to use. Change-Id: I0618412f5afc598eaa783b726d275e52131dc1a4 --- tools/gerrit-delete-comment.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/gerrit-delete-comment.py b/tools/gerrit-delete-comment.py index 11a586ab69..67926915c4 100755 --- a/tools/gerrit-delete-comment.py +++ b/tools/gerrit-delete-comment.py @@ -54,9 +54,9 @@ class Gerrit: def list_messages(self, change): data = self.get(f'/a/changes/{change}/messages') for msg in data: - name = msg['real_author'].get('name') - username = msg['real_author'].get('username') - email = msg['real_author'].get('email') + name = msg['author'].get('name') + username = msg['author'].get('username') + email = msg['author'].get('email') date = msg['date'] msgid = msg['id'] print(BREAK)