From 7358d524d30cff69d14bb315a1382bb3c8c22945 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 24 Feb 2022 17:45:41 +0100 Subject: [PATCH] ceph-crash: fix some flake8 issues ceph-crash.in:21:1: E302 expected 2 blank lines, found 1 ceph-crash.in:32:80: E501 line too long (86 > 79 characters) ceph-crash.in:82:1: E302 expected 2 blank lines, found 1 ceph-crash.in:86:1: E302 expected 2 blank lines, found 1 Signed-off-by: Guillaume Abrioux (cherry picked from commit 0aee76965f92865d7f6e28b73b46dbdb5f1f9463) --- src/ceph-crash.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ceph-crash.in b/src/ceph-crash.in index 4502618fcf7aa..916f0664a9456 100755 --- a/src/ceph-crash.in +++ b/src/ceph-crash.in @@ -18,6 +18,7 @@ auth_names = ['client.crash.%s' % socket.gethostname(), 'client.crash', 'client.admin'] + def parse_args(): parser = argparse.ArgumentParser() parser.add_argument( @@ -29,7 +30,8 @@ def parse_args(): ) parser.add_argument( '--name', '-n', - help='ceph name to authenticate as (default: try client.crash, client.admin)') + help='ceph name to authenticate as ' + '(default: try client.crash, client.admin)') parser.add_argument( '--log-level', '-l', help='log level output (default: INFO), support INFO or DEBUG') @@ -79,10 +81,12 @@ def scrape_path(path): (metapath, p, os.path.join('posted/', p)) ) + def handler(signum, frame): print('*** Interrupted with signal %d ***' % signum) sys.exit(0) + def main(): global auth_names # exit code 0 on SIGINT, SIGTERM -- 2.39.5