]> git-server-git.apps.pok.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)
committerSage Weil <sage@newdream.net>
Tue, 16 Mar 2021 12:56:16 +0000 (07:56 -0500)
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 6c8ea9fb65cb63db0aac4d53d507e21a0f85d726)

src/cephadm/cephadm
src/cephadm/tox.ini

index e483a0ce44bf661566b03fef2141b73e2be9499d..d7df8e37e996cb514e551239084b1d6284927b2a 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,