From: Sage Weil Date: Fri, 16 Jul 2021 04:46:27 +0000 (-0400) Subject: mgr/cephadm: add help strings for 'orch client-keyring ...' commands X-Git-Tag: v17.1.0~1373^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F42379%2Fhead;p=ceph.git mgr/cephadm: add help strings for 'orch client-keyring ...' commands Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index b84a551ab961..44f036536bac 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -1230,6 +1230,9 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule, @orchestrator._cli_read_command('orch client-keyring ls') def _client_keyring_ls(self, format: Format = Format.plain) -> HandleCommandResult: + """ + List client keyrings under cephadm management + """ if format != Format.plain: output = to_format(self.keys.keys.values(), format, many=True, cls=ClientKeyringSpec) else: @@ -1257,6 +1260,9 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule, owner: Optional[str] = None, mode: Optional[str] = None, ) -> HandleCommandResult: + """ + Add or update client keyring under cephadm management + """ if not entity.startswith('client.'): raise OrchestratorError('entity must start with client.') if owner: @@ -1285,6 +1291,9 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule, self, entity: str, ) -> HandleCommandResult: + """ + Remove client keyring from cephadm management + """ self.keys.rm(entity) self._kick_serve_loop() return HandleCommandResult()