summaryrefslogtreecommitdiffstats
path: root/glustolibs-gluster/glustolibs/gluster/snap_ops.py
diff options
context:
space:
mode:
authorValerii Ponomarov <vponomar@redhat.com>2019-12-10 21:57:09 +0530
committerBala Konda Reddy M <bmekala@redhat.com>2019-12-17 06:07:20 +0000
commitfff20da7fa964453a74206d25e8009c1ae202f56 (patch)
treee6ec94cb62952a362c9ab427ee2309259518cc9e /glustolibs-gluster/glustolibs/gluster/snap_ops.py
parent5189557f8c3332e936842b3a21e44b5df21f7698 (diff)
[py2to3] Add py3 support in 'tests/functional/snapshot'
Change-Id: Ie408d7972452123b63eb5cc17c61bc319a99e304 Signed-off-by: Valerii Ponomarov <kiparis.kh@gmail.com>
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/snap_ops.py')
-rw-r--r--glustolibs-gluster/glustolibs/gluster/snap_ops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/snap_ops.py b/glustolibs-gluster/glustolibs/gluster/snap_ops.py
index 2ca5688..01a7df3 100644
--- a/glustolibs-gluster/glustolibs/gluster/snap_ops.py
+++ b/glustolibs-gluster/glustolibs/gluster/snap_ops.py
@@ -750,7 +750,7 @@ def set_snap_config(mnode, option, volname=None):
volname = ""
cmd = ("gluster snapshot config %s %s %s --mode=script"
- % (volname, option.keys()[0], option.values()[0]))
+ % (volname, list(option.keys())[0], list(option.values())[0]))
return g.run(mnode, cmd)