Skip to content

Commit

Permalink
mgr/cephadm: reformat the _service_classes variable
Browse files Browse the repository at this point in the history
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 <jmulligan@redhat.com>
  • Loading branch information
phlogistonjohn committed Mar 21, 2024
1 parent 35028e1 commit a500f42
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions src/pybind/mgr/cephadm/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,12 +661,33 @@ def __init__(self, *args: Any, **kwargs: Any):
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
Expand Down

0 comments on commit a500f42

Please sign in to comment.