]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: expected 1 blank line before a nested definition (E306)
authorMichael Fritch <mfritch@suse.com>
Thu, 18 Feb 2021 22:15:48 +0000 (15:15 -0700)
committerMichael Fritch <mfritch@suse.com>
Wed, 3 Mar 2021 16:33:30 +0000 (09:33 -0700)
Signed-off-by: Michael Fritch <mfritch@suse.com>
src/cephadm/cephadm
src/cephadm/tox.ini

index 808020dd899dbce679484bc79f330253f294cbf0..b4dd2564b9fc7b5b1472f0d9065fcfb06288da23 100755 (executable)
@@ -982,6 +982,7 @@ def port_in_use(ctx, port_num):
     # type: (CephadmContext, int) -> bool
     """Detect whether a port is in use on the local machine - IPv4 and IPv6"""
     logger.info('Verifying port %d ...' % port_num)
+
     def _port_in_use(af: socket.AddressFamily, address: str) -> bool:
         try:
             s = socket.socket(af, socket.SOCK_STREAM)
@@ -3931,8 +3932,10 @@ def command_bootstrap(ctx):
             out = cli(['mgr', 'dump'])
         j = json.loads(out)
         epoch = j['epoch']
+
         # wait for mgr to have it
         logger.info('Waiting for the mgr to restart...')
+
         def mgr_has_latest_epoch():
             # type: () -> bool
             try:
index d67c12421b3e4f88f80eb91edc4cd296006c73ea..62afb0f0be131bd50fa68bbab4becfb049bffdbe 100644 (file)
@@ -5,7 +5,6 @@ skipsdist=true
 [flake8]
 max-line-length = 100
 ignore =
-    E306,
     E402,
     E501,
     E703,