]> git.apps.os.sepia.ceph.com Git - ceph.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>
Thu, 13 Jun 2019 14:22:48 +0000 (19:52 +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>
(cherry picked from commit 834bd72d6f51801cd3b35bcc22d0f2979afbdecc)

src/pybind/mgr/volumes/module.py

index 30b959bcb8e5b18ab6ab718207534e79608ded8e..4085fba7083c055bdc2b1d14f5d0ad7a7b558d28 100644 (file)
@@ -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, "", ""