]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/nfs: Instead of 'auth del' use 'auth rm'
authorVarsha Rao <varao@redhat.com>
Fri, 29 May 2020 17:54:54 +0000 (23:24 +0530)
committerVarsha Rao <varao@redhat.com>
Wed, 8 Jul 2020 05:36:35 +0000 (07:36 +0200)
`mgr` profile allows 'auth rm'. Use it instead of 'auth del' which is not
allowed.

Signed-off-by: Varsha Rao <varao@redhat.com>
(cherry picked from commit 87c517af310a2fb0a5226867b6a852393c0f6b44)

src/pybind/mgr/volumes/fs/nfs.py

index 95a65cc53eb34f1e2588dd9d0cd68359c3177341..5bdabcf8976dbf58a2783174f56b0ae083b4a6b2 100644 (file)
@@ -224,7 +224,7 @@ class FSExport(object):
 
     def _delete_user(self, entity):
         self.mgr.check_mon_command({
-            'prefix': 'auth del',
+            'prefix': 'auth rm',
             'entity': 'client.{}'.format(entity),
             })
         log.info(f"Export user deleted is {entity}")