From 8a52ce70e4aef1d6e5c9e7dc622187616fff25c3 Mon Sep 17 00:00:00 2001 From: Vitalii Koriakov Date: Mon, 5 Nov 2018 14:09:38 +0200 Subject: Convert bitrot_ops to python3 Change-Id: I2183252ee881b5f9c8c74af62c7d8fd2cafb8fc9 Signed-off-by: Vitalii Koriakov --- glustolibs-gluster/glustolibs/gluster/bitrot_ops.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'glustolibs-gluster') diff --git a/glustolibs-gluster/glustolibs/gluster/bitrot_ops.py b/glustolibs-gluster/glustolibs/gluster/bitrot_ops.py index bbfcd93a4..5112dfb15 100755 --- a/glustolibs-gluster/glustolibs/gluster/bitrot_ops.py +++ b/glustolibs-gluster/glustolibs/gluster/bitrot_ops.py @@ -601,9 +601,9 @@ def get_scrub_status(mnode, volname): status_dict['status_info'] = tmp_dict1 for elmt in corrupt_list: - if elmt[0].strip(' ') in status_dict['status_info'].keys(): + if elmt[0].strip(' ') in list(status_dict['status_info'].keys()): val = elmt[1].split('\n') - val = filter(None, val) + val = [_f for _f in val if _f is not None] gfid = "corrupted_gfid" status_dict['status_info'][elmt[0].strip(' ')][gfid] = val return status_dict -- cgit