From 4085951f1882ae9133cdee605c17d3956e73b199 Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Wed, 12 May 2021 22:33:32 +0530 Subject: [PATCH] mgr/nfs: fix flake8 missing whitespace around parameter equals error Signed-off-by: Varsha Rao (cherry picked from commit 57dba10325b23e52524b2a2c82381b1b5a020964) --- src/pybind/mgr/nfs/module.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/pybind/mgr/nfs/module.py b/src/pybind/mgr/nfs/module.py index 9d9371f4619e2..a3d4272c98b9f 100644 --- a/src/pybind/mgr/nfs/module.py +++ b/src/pybind/mgr/nfs/module.py @@ -24,8 +24,12 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule): self.inited = True @CLICommand('nfs export create cephfs', perm='rw') - def _cmd_nfs_export_create_cephfs(self, fsname: str, clusterid: str, binding: str, - readonly: bool=False, path: str='/') -> Tuple[int, str, str]: + def _cmd_nfs_export_create_cephfs(self, + fsname: str, + clusterid: str, + binding: str, + readonly: bool = False, + path: str = '/') -> Tuple[int, str, str]: """Create a cephfs export""" # TODO Extend export creation for rgw. return self.export_mgr.create_export(fsal_type='cephfs', fs_name=fsname, @@ -38,7 +42,7 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule): return self.export_mgr.delete_export(cluster_id=clusterid, pseudo_path=binding) @CLICommand('nfs export ls', perm='r') - def _cmd_nfs_export_ls(self, clusterid: str, detailed: bool=False) -> Tuple[int, str, str]: + def _cmd_nfs_export_ls(self, clusterid: str, detailed: bool = False) -> Tuple[int, str, str]: """List exports of a NFS cluster""" return self.export_mgr.list_exports(cluster_id=clusterid, detailed=detailed) @@ -54,7 +58,8 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule): return self.export_mgr.update_export(export_config=inbuf) @CLICommand('nfs cluster create', perm='rw') - def _cmd_nfs_cluster_create(self, clusterid: str, placement: str=None) -> Tuple[int, str, str]: + def _cmd_nfs_cluster_create(self, clusterid: str, + placement: str = None) -> Tuple[int, str, str]: """Create an NFS Cluster""" return self.nfs.create_nfs_cluster(cluster_id=clusterid, placement=placement) @@ -74,7 +79,7 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule): return self.nfs.list_nfs_cluster() @CLICommand('nfs cluster info', perm='r') - def _cmd_nfs_cluster_info(self, clusterid: str=None) -> Tuple[int, str, str]: + def _cmd_nfs_cluster_info(self, clusterid: str = None) -> Tuple[int, str, str]: """Displays NFS Cluster info""" return self.nfs.show_nfs_cluster_info(cluster_id=clusterid) -- 2.39.5