diff options
author | Vitalii Koriakov <vkoriako@redhat.com> | 2018-11-05 14:09:38 +0200 |
---|---|---|
committer | Vijay Avuthu <vavuthu@redhat.com> | 2018-11-19 13:49:18 +0000 |
commit | 8a52ce70e4aef1d6e5c9e7dc622187616fff25c3 (patch) | |
tree | a09178822493bb2f293e85b0c8ad86b21f8d5991 /glustolibs-gluster | |
parent | 6bd5172b2c99edd7aeda585a3dce14d71ec0d263 (diff) |
Convert bitrot_ops to python3
Change-Id: I2183252ee881b5f9c8c74af62c7d8fd2cafb8fc9
Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
Diffstat (limited to 'glustolibs-gluster')
-rwxr-xr-x | glustolibs-gluster/glustolibs/gluster/bitrot_ops.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |