]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: too many leading '#' for block comment (E266)
authorSage Weil <sage@newdream.net>
Mon, 15 Mar 2021 21:41:48 +0000 (16:41 -0500)
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 3dcb56e3e31d11041a48c2749bb248240bb14134)

# Conflicts:
# src/cephadm/cephadm
  - whitespacea roudn comment

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

index beb313e84bc681080b73b5b514e31ec90a79e5b6..7b008a9b4c962312b01337aae5f77f401a7fb91b 100755 (executable)
@@ -164,9 +164,6 @@ class CephadmContext:
             super().__setattr__(name, value)
 
 
-##################################
-
-
 # Log and console output config
 logging_config = {
     'version': 1,
@@ -1875,7 +1872,7 @@ def move_files(ctx, src, dst, uid=None, gid=None):
             os.chown(dst_file, uid, gid)
 
 
-## copied from distutils ##
+# copied from distutils
 def find_executable(executable, path=None):
     """Tries to find 'executable' in the directories listed in 'path'.
     A string listing directories separated by 'os.pathsep'; defaults to
@@ -4425,9 +4422,9 @@ def command_logs(ctx):
 def list_networks(ctx):
     # type: (CephadmContext) -> Dict[str,List[str]]
 
-    ## sadly, 18.04's iproute2 4.15.0-2ubun doesn't support the -j flag,
-    ## so we'll need to use a regex to parse 'ip' command output.
-    ##
+    # sadly, 18.04's iproute2 4.15.0-2ubun doesn't support the -j flag,
+    # so we'll need to use a regex to parse 'ip' command output.
+    #
     # out, _, _ = call_throws(['ip', '-j', 'route', 'ls'])
     # j = json.loads(out)
     # for x in j:
index 18ce529d341ad1d09853ea835c04ebb5707a22a2..6ec9f7b8c93b060ff64988827adba6b49bc7db26 100644 (file)
@@ -5,7 +5,6 @@ skipsdist=true
 [flake8]
 max-line-length = 100
 ignore =
-    E266,
     E301,
     E302,
     E303,