]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/volumes: Add a note about placement option in nfs cluster create
authorVarsha Rao <varao@redhat.com>
Wed, 8 Apr 2020 06:13:57 +0000 (11:43 +0530)
committerVarsha Rao <varao@redhat.com>
Wed, 8 Jul 2020 05:36:34 +0000 (07:36 +0200)
Signed-off-by: Varsha Rao <varao@redhat.com>
(cherry picked from commit e3da10220ec854bec63c369b1e6a96013cf875d0)

src/pybind/mgr/volumes/module.py

index e6a6f9b78ed22d42a47e9ad033ebcf8bf85b459f..c830169af95746f9de81678f356196aed0a3f3c8 100644 (file)
@@ -473,8 +473,9 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule):
                 path=cmd.get('path', '/'), cluster_id=cmd.get('attach'))
 
     def _cmd_fs_nfs_export_delete(self, inbuf, cmd):
-            return self.fs_export.delete_export(cmd['export_id'])
+        return self.fs_export.delete_export(cmd['export_id'])
 
     def _cmd_nfs_cluster_create(self, inbuf, cmd):
-            nfs_cluster_obj = NFSCluster(self, cmd['clusterid'])
-            return nfs_cluster_obj.create_nfs_cluster(export_type=cmd['type'], size=cmd.get('size', 1))
+        #TODO add placement option
+        nfs_cluster_obj = NFSCluster(self, cmd['clusterid'])
+        return nfs_cluster_obj.create_nfs_cluster(export_type=cmd['type'], size=cmd.get('size', 1))