mirror of
https://github.com/ceph/ceph
synced 2025-02-23 19:17:37 +00:00
mgr/nfs: rename method
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
6fb9f0a391
commit
317143d8bf
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user