From: Ramana Raja Date: Wed, 5 Jun 2019 12:25:09 +0000 (+0530) Subject: mgr/volumes: fix error message X-Git-Tag: v14.2.2~54^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=062798780a40fcab80bcfeb9b0f97d1c558d2107;p=ceph.git mgr/volumes: fix error message ... when trying to remove a non-existent fs subvolume group snapshot. Fixes: http://tracker.ceph.com/issues/40014 Signed-off-by: Ramana Raja (cherry picked from commit 834bd72d6f51801cd3b35bcc22d0f2979afbdecc) --- diff --git a/src/pybind/mgr/volumes/module.py b/src/pybind/mgr/volumes/module.py index 30b959bcb8e5b..4085fba7083c0 100644 --- a/src/pybind/mgr/volumes/module.py +++ b/src/pybind/mgr/volumes/module.py @@ -538,7 +538,7 @@ class Module(orchestrator.OrchestratorClientMixin, MgrModule): 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, "", ""