From: Sebastian Wagner Date: Wed, 5 Aug 2020 10:50:01 +0000 (+0200) Subject: mgr/cephadm: module.py: PEP8tify `ceph orch * ls` X-Git-Tag: v15.2.5~26^2~31 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9edb8cebca397ed4fbfbcfb591869234b26d8020;p=ceph.git mgr/cephadm: module.py: PEP8tify `ceph orch * ls` Signed-off-by: Sebastian Wagner (cherry picked from commit be3f513239d45feb8557f30e05fc562ce9594f51) --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 9c0e156f3ea4..30405d710021 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -1461,8 +1461,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') @@ -1514,7 +1514,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': @@ -1673,7 +1674,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.