[sysadmin-bin] reason is function argument, not user attribute
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] reason is function argument, not user attribute
- Date: Mon, 6 Dec 2021 07:36:34 +0000 (UTC)
commit ea3a2ca06975169050623de636dde947a24bdc9f
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Mon Dec 6 08:36:07 2021 +0100
reason is function argument, not user attribute
gitlab/inactive-gitlab-users.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gitlab/inactive-gitlab-users.py b/gitlab/inactive-gitlab-users.py
index 449260a..c92ba67 100755
--- a/gitlab/inactive-gitlab-users.py
+++ b/gitlab/inactive-gitlab-users.py
@@ -212,7 +212,7 @@ def untrust_user(gl, user_id):
def delete_user(gl, user_id, reason=""):
try:
user = gl.users.get(user_id)
- print(f"{user.username},{user.email},{user.reason}")
+ print(f"{user.username},{user.email},{reason}")
gl.users.delete(user_id)
except gitlab.exceptions.GitlabDeleteError:
pass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]