From be3f513239d45feb8557f30e05fc562ce9594f51 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Wed, 5 Aug 2020 12:50:01 +0200 Subject: [PATCH] mgr/cephadm: module.py: PEP8tify `ceph orch * ls` Signed-off-by: Sebastian Wagner --- src/pybind/mgr/cephadm/module.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 631fc406ee0e0..7b3e737cc335c 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -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. -- 2.39.5