]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: module.py: PEP8tify `ceph orch * ls` 36447/head
authorSebastian Wagner <sebastian.wagner@suse.com>
Wed, 5 Aug 2020 10:50:01 +0000 (12:50 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Wed, 5 Aug 2020 14:49:17 +0000 (16:49 +0200)
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/pybind/mgr/cephadm/module.py

index 631fc406ee0e0a1ec6daae7ab80aa119d75f4c19..7b3e737cc335ca3dac4e3b504ae4509eb3b000ad 100644 (file)
@@ -1460,8 +1460,8 @@ you may want to run:
         self._kick_serve_loop()
 
     @trivial_completion
-    def describe_service(self, service_type: Optional[str]=None, service_name: Optional[str]=None,
-                         refresh: bool=False) -> List[orchestrator.ServiceDescription]:
+    def describe_service(self, service_type: Optional[str] = None, service_name: Optional[str] = None,
+                         refresh: bool = False) -> List[orchestrator.ServiceDescription]:
         if refresh:
             self._invalidate_daemons_and_kick_serve()
             self.log.info('Kicked serve() loop to refresh all services')
@@ -1513,7 +1513,8 @@ you may want to run:
                         osd_count += 1
                         sm[n].size = osd_count
                     else:
-                        sm[n].size = spec.placement.get_host_selection_size(self.inventory.all_specs())
+                        sm[n].size = spec.placement.get_host_selection_size(
+                            self.inventory.all_specs())
 
                     sm[n].created = self.spec_store.spec_created[n]
                     if service_type == 'nfs':
@@ -1663,7 +1664,7 @@ you may want to run:
             return f'Failed to remove service. <{service_name}> was not found.'
 
     @trivial_completion
-    def get_inventory(self, host_filter: Optional[orchestrator.InventoryFilter]=None, refresh=False) -> List[orchestrator.InventoryHost]:
+    def get_inventory(self, host_filter: Optional[orchestrator.InventoryFilter] = None, refresh=False) -> List[orchestrator.InventoryHost]:
         """
         Return the storage inventory of hosts matching the given filter.