]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: Continuation line under-indented for hanging indent (E121)
authorMichael Fritch <mfritch@suse.com>
Thu, 28 Jan 2021 03:02:27 +0000 (20:02 -0700)
committerMichael Fritch <mfritch@suse.com>
Fri, 5 Feb 2021 18:18:22 +0000 (11:18 -0700)
Signed-off-by: Michael Fritch <mfritch@suse.com>
src/pybind/mgr/cephadm/tests/test_scheduling.py
src/pybind/mgr/tox.ini

index 205b48d95b887ec7b716b340d661ebce30f20ca1..3c36276867d9c0c289683d1ccbf9ff2a6c898b95 100644 (file)
@@ -113,9 +113,9 @@ def mk_spec_and_host(spec_section, hosts, explicit_key, explicit, count):
         assert False
 
     hosts = [
-            HostSpec(h, labels=['mylabel']) if h in explicit else HostSpec(h)
-            for h in hosts
-        ]
+        HostSpec(h, labels=['mylabel']) if h in explicit else HostSpec(h)
+        for h in hosts
+    ]
 
     return mk_spec, hosts
 
@@ -839,8 +839,8 @@ class OddMonsTest(NamedTuple):
                                 PlacementSpec(count=5),
                                 'host1 host2 host3 host4'.split(),
                                 [
-                                   DaemonDescription('mon', 'a', 'host1'),
-                                   DaemonDescription('mon', 'b', 'host2'),
+                                    DaemonDescription('mon', 'a', 'host1'),
+                                    DaemonDescription('mon', 'b', 'host2'),
                                 ],
                                 3
                             ),
@@ -849,9 +849,9 @@ class OddMonsTest(NamedTuple):
                                 PlacementSpec(hosts='host1 host2 host3 host4'.split()),
                                 'host1 host2 host3 host4 host5'.split(),
                                 [
-                                   DaemonDescription('mon', 'a', 'host1'),
-                                   DaemonDescription('mon', 'b', 'host2'),
-                                   DaemonDescription('mon', 'c', 'host3'),
+                                    DaemonDescription('mon', 'a', 'host1'),
+                                    DaemonDescription('mon', 'b', 'host2'),
+                                    DaemonDescription('mon', 'c', 'host3'),
                                 ],
                                 3
                             ),
index 69ffde107ac908770229b3fa954d34671483124d..579306a9df7d4e1560d179429ca8fea7bc422417 100644 (file)
@@ -11,7 +11,6 @@ requires = cython
 [flake8]
 max-line-length = 100
 ignore =
-    E121,
     E122,
     E124,
     E126,