]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/nfs: fix flake8 missing whitespace around parameter equals error
authorVarsha Rao <varao@redhat.com>
Wed, 12 May 2021 17:03:32 +0000 (22:33 +0530)
committerVarsha Rao <varao@redhat.com>
Thu, 20 May 2021 05:39:05 +0000 (11:09 +0530)
Signed-off-by: Varsha Rao <varao@redhat.com>
(cherry picked from commit 57dba10325b23e52524b2a2c82381b1b5a020964)

src/pybind/mgr/nfs/module.py

index 9d9371f4619e2d39706957c82ac4785a09155e7a..a3d4272c98b9fce4ed0999df7c7a7f3b5f4d8144 100644 (file)
@@ -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)