]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-crash: fix some flake8 issues
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 24 Feb 2022 16:45:41 +0000 (17:45 +0100)
committerTim Serong <tserong@suse.com>
Wed, 9 Nov 2022 02:57:16 +0000 (13:57 +1100)
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 <gabrioux@redhat.com>
(cherry picked from commit 0aee76965f92865d7f6e28b73b46dbdb5f1f9463)

src/ceph-crash.in

index 4502618fcf7aacc0827df17d082810148c7ac371..916f0664a9456679350187e5b2a1bcc2ac500360 100755 (executable)
@@ -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