]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/nfs: rename method
authorSage Weil <sage@newdream.net>
Mon, 21 Jun 2021 16:23:58 +0000 (12:23 -0400)
committerSebastian Wagner <sewagner@redhat.com>
Thu, 9 Sep 2021 14:17:51 +0000 (16:17 +0200)
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 317143d8bfd4a0721bdd32006f13a1aecca7b109)

src/pybind/mgr/nfs/export.py

index 3063364fc15087083aa4edd64ccf16e59e931ef4..46955c9fffde138cfd3670fd58f29d092892aaf0 100644 (file)
@@ -353,7 +353,7 @@ class ExportMgr:
                 raise NFSInvalidOperation("Empty Config!!")
             new_export = json.loads(export_config)
             # check export type
-            return self.update_export_1(cluster_id, new_export)
+            return self._apply_export(cluster_id, new_export)
         except NotImplementedError:
             return 0, " Manual Restart of NFS PODS required for successful update of exports", ""
         except Exception as e:
@@ -519,7 +519,7 @@ class ExportMgr:
             return (0, json.dumps(result, indent=4), '')
         return 0, "", "Export already exists"
 
-    def update_export_1(
+    def _apply_export(
             self,
             cluster_id: str,
             new_export_dict: Dict,