]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: fix some nonstandard formatting in fixtures.py
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 26 Sep 2022 19:33:41 +0000 (15:33 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 27 Sep 2022 18:42:13 +0000 (14:42 -0400)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/tests/fixtures.py

index c65e0a883dffb5f5ce6a1e21ac9fb54e8b6219a5..ef61e68474b1c074b41e060fda151b81493f88c4 100644 (file)
@@ -39,11 +39,13 @@ def _daemon_path():
 def mock_bad_firewalld():
     def raise_bad_firewalld():
         raise Exception('Called bad firewalld')
+
     _cephadm = import_cephadm()
     f = mock.Mock(_cephadm.Firewalld)
-    f.enable_service_for = lambda _ : raise_bad_firewalld()
-    f.apply_rules = lambda : raise_bad_firewalld()
-    f.open_ports = lambda _ : raise_bad_firewalld()
+    f.enable_service_for = lambda _: raise_bad_firewalld()
+    f.apply_rules = lambda: raise_bad_firewalld()
+    f.open_ports = lambda _: raise_bad_firewalld()
+
 
 def _mock_scrape_host(obj, interval):
     try:
@@ -115,7 +117,7 @@ def host_sysfs(fs: fake_filesystem.FakeFilesystem):
 @contextmanager
 def with_cephadm_ctx(
     cmd: List[str],
-    list_networks: Optional[Dict[str,Dict[str,List[str]]]] = None,
+    list_networks: Optional[Dict[str, Dict[str, List[str]]]] = None,
     hostname: Optional[str] = None,
 ):
     """