[sysadmin-bin] Print username on removal
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Print username on removal
- Date: Tue, 30 Nov 2021 12:50:07 +0000 (UTC)
commit 6ce7b984c310113bfa8337e2fecc14fa22e78e95
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Tue Nov 30 13:49:59 2021 +0100
Print username on removal
gitlab/inactive-gitlab-users.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gitlab/inactive-gitlab-users.py b/gitlab/inactive-gitlab-users.py
index 12872e3..817cd89 100755
--- a/gitlab/inactive-gitlab-users.py
+++ b/gitlab/inactive-gitlab-users.py
@@ -212,8 +212,9 @@ def untrust_user(gl, user_id):
def delete_user(gl, user_id):
try:
+ user = gl.users.get(user_id)
+ print(user.username)
gl.users.delete(user_id)
- print(user_id)
except gitlab.exceptions.GitlabDeleteError:
pass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]