Skip to content

Commit

Permalink
mgr/volumes: fix error message
Browse files Browse the repository at this point in the history
... when trying to remove a non-existent fs subvolume group
snapshot.

Fixes: http://tracker.ceph.com/issues/40014
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit 834bd72)
  • Loading branch information
ajarr committed Jun 13, 2019
1 parent 52fa4f2 commit 0627987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pybind/mgr/volumes/module.py
Expand Up @@ -538,7 +538,7 @@ def _cmd_fs_subvolumegroup_snapshot_rm(self, inbuf, cmd):
return 0, "", ""
else:
return -errno.ENOENT, "", \
"Subvolume group snapshot '{0}' not found, cannot remove it".format(sub_name)
"Subvolume group snapshot '{0}' not found, cannot remove it".format(snap_name)

return 0, "", ""

Expand Down

0 comments on commit 0627987

Please sign in to comment.