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:
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
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)
f._hide_in_features = True # type: ignore
return f
+
class Orchestrator(object):
"""
Calls in this class may do long running remote operations, with time