]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: too many blank lines (E303)
authorMichael Fritch <mfritch@suse.com>
Thu, 18 Feb 2021 22:12:50 +0000 (15:12 -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 52aa139ff382c6386e1c1af0f0453237f7405a1b..2fd025f689cf946a5540c664f870d43b117338be 100755 (executable)
@@ -130,24 +130,19 @@ class BaseConfig:
 class CephadmContext:
 
     def __init__(self):
-
         self.__dict__["_args"] = None
         self.__dict__["_conf"] = BaseConfig()
 
-
     def set_args(self, args: argparse.Namespace) -> None:
         self._conf.set_from_args(args)
         self._args = args
 
-
     def has_function(self) -> bool:
         return "func" in self._args
 
-
     def __contains__(self, name: str) -> bool:
         return hasattr(self, name)
 
-
     def __getattr__(self, name: str) -> Any:
         if "_conf" in self.__dict__ and hasattr(self._conf, name):
             return getattr(self._conf, name)
@@ -2752,7 +2747,6 @@ def deploy_daemon_units(
         call_throws(ctx, ['systemctl', 'start', unit_name])
 
 
-
 class Firewalld(object):
     def __init__(self, ctx):
         # type: (CephadmContext) -> None
@@ -3809,7 +3803,6 @@ def finish_bootstrap_config(
         logger.info('Enabling IPv6 (ms_bind_ipv6) binding')
         cli(['config', 'set', 'global', 'ms_bind_ipv6', 'true'])
 
-
     with open(ctx.output_config, 'w') as f:
         f.write(config)
     logger.info('Wrote config to %s' % ctx.output_config)
@@ -3847,7 +3840,6 @@ def command_bootstrap(ctx):
             except PermissionError:
                 raise Error(f"Unable to create {dirname} due to permissions failure. Retry with root, or sudo or preallocate the directory.")
 
-
     if not ctx.skip_prepare_host:
         command_prepare_host(ctx)
     else:
@@ -6251,7 +6243,6 @@ class HostFacts():
                 phys_devs.append(iface)
         return len(phys_devs)
 
-
     def _get_mem_data(self, field_name):
         # type: (str) -> int
         for line in self._meminfo:
index 751884995d7f4b0b982b837cf50bb2b6ac33a1b9..ec016af9a62bc07d5b6b0e5dfc5cd6b349a3ab60 100644 (file)
@@ -5,7 +5,6 @@ skipsdist=true
 [flake8]
 max-line-length = 100
 ignore =
-    E303,
     E305,
     E306,
     E402,