]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
src/ceph-crash.in: fix --name usage
authorSébastien Han <seb@redhat.com>
Mon, 28 Jun 2021 16:36:51 +0000 (18:36 +0200)
committerSébastien Han <seb@redhat.com>
Mon, 5 Jul 2021 09:32:23 +0000 (11:32 +0200)
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 <seb@redhat.com>
src/ceph-crash.in

index f7f575b6f75a5cd5945e4c29b46b2055fa507a64..917044db17f886ef4427e24511a6e804135c5a27 100755 (executable)
@@ -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)