From bada6435019fc8f5b626d90b5ff256132bdb899d Mon Sep 17 00:00:00 2001 From: srivickynesh Date: Tue, 12 Jun 2018 10:13:51 +0530 Subject: Snapshot:: Fix: view_snaps_from_mounts function fix for function view_snaps_from_mounts 1. Iteration through snap_list was incorrect as we were comparing snaps taken from snap_list against snap_list itself. 2. Now it is changed to snaps which is superset of all snaps. Change-Id: Ib14e7819f6fd49e563fd9e8a8f7699581a8900b4 Signed-off-by: srivickynesh --- glustolibs-io/glustolibs/io/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'glustolibs-io') diff --git a/glustolibs-io/glustolibs/io/utils.py b/glustolibs-io/glustolibs/io/utils.py index afee86acc..6f9f642e3 100644 --- a/glustolibs-io/glustolibs/io/utils.py +++ b/glustolibs-io/glustolibs/io/utils.py @@ -212,7 +212,7 @@ def view_snaps_from_mount(mounts, snaps): _rc = False continue - for snap_name in snap_list: + for snap_name in snaps: if snap_name not in snap_list: g.log.error("Failed to list snap %s in '.snaps' dir on " "%s:%s - %s", snap_name, -- cgit