]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/cephadm: minor pep8 fixes
authorSebastian Wagner <sebastian.wagner@suse.com>
Fri, 22 Jan 2021 09:19:03 +0000 (10:19 +0100)
committerSebastian Wagner <sebastian.wagner@suse.com>
Fri, 22 Jan 2021 09:19:50 +0000 (10:19 +0100)
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/orchestrator/_interface.py

index a3613e1a936e84f3a13e01662a8b153272ba9f47..305e8cbd71670aceeb11f2ca98ee4f6f2eb2b280 100644 (file)
@@ -938,7 +938,7 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule,
         Text that is appended to all daemon's ceph.conf.
         Mainly a workaround, till `config generate-minimal-conf` generates
         a complete ceph.conf.
-             
+
         Warning: this is a dangerous operation.
         """
         if inbuf:
index fe65012285f4a5b8944388e920c1acfff3697a96..cc726d52d7da22449faf792011593991b10ab123 100644 (file)
@@ -24,7 +24,8 @@ from typing import TypeVar, Generic, List, Optional, Union, Tuple, Iterator, Cal
 try:
     from typing import Protocol  # Protocol was added in Python 3.8
 except ImportError:
-    class Protocol: pass  # type: ignore
+    class Protocol:  # type: ignore
+        pass
 
 
 import yaml
@@ -116,6 +117,7 @@ def handle_exception(prefix: str, perm: str, func: FuncT) -> FuncT:
 class InnerCliCommandCallable(Protocol):
     def __call__(self, prefix: str) -> Callable[[FuncT], FuncT]: ...
 
+
 def _cli_command(perm: str) -> InnerCliCommandCallable:
     def inner_cli_command(prefix: str) -> Callable[[FuncT], FuncT]:
         return lambda func: handle_exception(prefix, perm, func)
@@ -666,6 +668,7 @@ def _hide_in_features(f: FuncT) -> FuncT:
     f._hide_in_features = True  # type: ignore
     return f
 
+
 class Orchestrator(object):
     """
     Calls in this class may do long running remote operations, with time