From f1af846c60598b573697ba2c55266ae88087227b Mon Sep 17 00:00:00 2001 From: Michael Fritch Date: Thu, 18 Feb 2021 15:12:50 -0700 Subject: [PATCH] cephadm: too many blank lines (E303) Signed-off-by: Michael Fritch --- src/cephadm/cephadm | 9 --------- src/cephadm/tox.ini | 1 - 2 files changed, 10 deletions(-) diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index 52aa139ff382c..2fd025f689cf9 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -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: diff --git a/src/cephadm/tox.ini b/src/cephadm/tox.ini index 751884995d7f4..ec016af9a62bc 100644 --- a/src/cephadm/tox.ini +++ b/src/cephadm/tox.ini @@ -5,7 +5,6 @@ skipsdist=true [flake8] max-line-length = 100 ignore = - E303, E305, E306, E402, -- 2.39.5