]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/rook: fix mds service list 43549/head
authorSage Weil <sage@newdream.net>
Tue, 12 Oct 2021 14:43:05 +0000 (09:43 -0500)
committerSage Weil <sage@newdream.net>
Thu, 14 Oct 2021 16:06:24 +0000 (11:06 -0500)
Signed-off-by: Sage Weil <sage@newdream.net>
src/pybind/mgr/rook/module.py

index 104780d93f77bb71ae3e6c32588ffbff4eb040c9..06f4ef42062a82b2236cbf760b831e7fccd6f03b 100644 (file)
@@ -284,16 +284,16 @@ class RookOrchestrator(MgrModule, orchestrator.Orchestrator):
                 total_mds = active
                 if fs['spec'].get('metadataServer', {}).get('activeStandby', False):
                     total_mds = active * 2
-                    spec[svc] = orchestrator.ServiceDescription(
-                        spec=ServiceSpec(
-                            service_type='mds',
-                            service_id=fs['metadata']['name'],
-                            placement=PlacementSpec(count=active),
-                        ),
-                        size=total_mds,
-                        container_image_name=image_name,
-                        last_refresh=now,
-                    )
+                spec[svc] = orchestrator.ServiceDescription(
+                    spec=ServiceSpec(
+                        service_type='mds',
+                        service_id=fs['metadata']['name'],
+                        placement=PlacementSpec(count=active),
+                    ),
+                    size=total_mds,
+                    container_image_name=image_name,
+                    last_refresh=now,
+                )
 
         if service_type == 'rgw' or service_type is None:
             # CephObjectstores