Skip to content

Commit 48d8279

Browse files
committed
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 <[email protected]>
1 parent 0325fd3 commit 48d8279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pybind/mgr/smb/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ def _check_cluster(cluster: ClusterRef, staging: _Staging) -> None:
758758
cluster,
759759
msg="cluster in use by shares",
760760
status={
761-
'clusters': [
761+
'shares': [
762762
shid
763763
for cid, shid in share_ids
764764
if cid == cluster.cluster_id

0 commit comments

Comments
 (0)