summaryrefslogtreecommitdiffstats
path: root/glustolibs-io
diff options
context:
space:
mode:
authorsrivickynesh <sselvan@redhat.com>2018-06-12 10:13:51 +0530
committerNigel Babu <nigelb@redhat.com>2018-06-15 07:29:12 +0000
commitbada6435019fc8f5b626d90b5ff256132bdb899d (patch)
tree14183f7492ec046b0a4ebb2c243f7c914a5f535f /glustolibs-io
parent2c39d690ad10feaa980ca72379754b2ada35d875 (diff)
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 <sselvan@redhat.com>
Diffstat (limited to 'glustolibs-io')
-rw-r--r--glustolibs-io/glustolibs/io/utils.py2
1 files changed, 1 insertions, 1 deletions
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,