From: John Mulligan Date: Wed, 13 Dec 2023 20:49:12 +0000 (-0500) Subject: mgr/cephadm: reformat the _service_classes variable X-Git-Tag: v19.1.0~82^2~19 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=39dd0e8c6347f966bceadea7f35c4488524647f9;p=ceph.git 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) --- 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