From 66037d0c0ba80f2c4009558bb13ad073ca59f954 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Mon, 28 Jun 2021 18:36:51 +0200 Subject: [PATCH] src/ceph-crash.in: fix --name usage MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Previously when the --name was used, the code will still go through the initial list. Now if --name is passed, only this user will be used to upload crashes. Signed-off-by: Sébastien Han --- src/ceph-crash.in | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ceph-crash.in b/src/ceph-crash.in index f7f575b6f75..917044db17f 100755 --- a/src/ceph-crash.in +++ b/src/ceph-crash.in @@ -80,6 +80,7 @@ def handler(signum): sys.exit(0) def main(): + global auth_names # exit code 0 on SIGINT, SIGTERM signal.signal(signal.SIGINT, handler) signal.signal(signal.SIGTERM, handler) -- 2.39.5