From 834bd72d6f51801cd3b35bcc22d0f2979afbdecc Mon Sep 17 00:00:00 2001 From: Ramana Raja Date: Wed, 5 Jun 2019 17:55:09 +0530 Subject: [PATCH] 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 --- src/pybind/mgr/volumes/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/volumes/module.py b/src/pybind/mgr/volumes/module.py index 95e0d8e3878e..9d066e406073 100644 --- a/src/pybind/mgr/volumes/module.py +++ b/src/pybind/mgr/volumes/module.py @@ -549,7 +549,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, "", "" -- 2.47.3