]> 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)
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 f1af846c60598b573697ba2c55266ae88087227b)

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

index ba042573b5c3da98e3735d4d1d58483df1a67a55..232aa6bf0e23da75982c27e4a73744979cb2d44d 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,