From 39dd0e8c6347f966bceadea7f35c4488524647f9 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Wed, 13 Dec 2023 15:49:12 -0500 Subject: [PATCH] mgr/cephadm: reformat the _service_classes variable Reformat the _service_classes variable so that it uses a multi-line list with a single item on each line in a more black-ish style that is more readable (especially if you use code-folding wisely). Sort the list while we're at it. Signed-off-by: John Mulligan (cherry picked from commit a500f42d1a6faf5dc2607dd3ec425c5af7585128) --- src/pybind/mgr/cephadm/module.py | 33 ++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index b4fc12a6db1e2..3362a6780eb04 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -659,12 +659,33 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule, self.migration = Migrations(self) _service_classes: Sequence[Type[CephadmService]] = [ - OSDService, NFSService, MonService, MgrService, MdsService, - RgwService, RbdMirrorService, GrafanaService, AlertmanagerService, - PrometheusService, NodeExporterService, LokiService, PromtailService, CrashService, IscsiService, - IngressService, CustomContainerService, CephfsMirrorService, NvmeofService, - CephadmAgent, CephExporterService, SNMPGatewayService, ElasticSearchService, - JaegerQueryService, JaegerAgentService, JaegerCollectorService, NodeProxy + AlertmanagerService, + CephExporterService, + CephadmAgent, + CephfsMirrorService, + CrashService, + CustomContainerService, + ElasticSearchService, + GrafanaService, + IngressService, + IscsiService, + JaegerAgentService, + JaegerCollectorService, + JaegerQueryService, + LokiService, + MdsService, + MgrService, + MonService, + NFSService, + NodeExporterService, + NodeProxy, + NvmeofService, + OSDService, + PrometheusService, + PromtailService, + RbdMirrorService, + RgwService, + SNMPGatewayService, ] # https://github.com/python/mypy/issues/8993 -- 2.39.5