]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/smb: Replace "clusters" with "shares" in error status
authorAnoop C S <anoopcs@cryptolab.net>
Wed, 10 Jul 2024 17:29:51 +0000 (22:59 +0530)
committerAnoop C S <anoopcs@cryptolab.net>
Thu, 11 Jul 2024 12:42:35 +0000 (18:12 +0530)
commit48d8279dc7722f28fbba428e250baa8e4637f127
tree92dc4ac4bc08bdd9b3d7bf44fa500bba2fbadd27
parent0325fd3c11a225c0fd9eb38fab88aad1370ad779
mgr/smb: Replace "clusters" with "shares" in error status

In the following error response the list of active shares is incorrectly
displayed with "clusters" field.
{
  "resource": {
    "resource_type": "ceph.smb.cluster",
    "cluster_id": "smbcluster",
    "intent": "removed"
  },
  "clusters": [
    "smbshare"
  ],
  "msg": "cluster in use by shares",
  "success": false
}

Replace "clusters" with "shares" to avoid confusion.

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
src/pybind/mgr/smb/handler.py