]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/volumes: fix error message
authorRamana Raja <rraja@redhat.com>
Wed, 5 Jun 2019 12:25:09 +0000 (17:55 +0530)
committerRamana Raja <rraja@redhat.com>
Wed, 5 Jun 2019 12:37:08 +0000 (18:07 +0530)
... 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>
src/pybind/mgr/volumes/module.py

index 95e0d8e3878ed7ca7e6d67ca0691d957d9752c7c..9d066e406073fd1af042e1429746900a3b5656f5 100644 (file)
@@ -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, "", ""