[sysadmin-bin] Write the JSON file to /tmp
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Write the JSON file to /tmp
- Date: Mon, 6 Sep 2021 14:01:25 +0000 (UTC)
commit 41c4ad7a85460d2ddf162fb8aac9fdb24c1136b4
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Mon Sep 6 16:00:59 2021 +0200
Write the JSON file to /tmp
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 d858d24..34fa325 100755
--- a/gitlab/inactive-gitlab-users.py
+++ b/gitlab/inactive-gitlab-users.py
@@ -256,7 +256,7 @@ if __name__ == "__main__":
if args.command == "get-inactive":
unit, value = args.timedelta.split(":")
inactive = get_inactive_users(gl, unit, value)
- with open("inactive.json", "w") as f:
+ with open("/tmp/inactive.json", "w") as f:
json.dump(inactive, f)
elif args.command == "trust":
for id in args.user_id:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]