tests: Fix compatibility with Python3
xrange was renamed to range in Python3. Related: #2091624
This commit is contained in:
parent
15c484f8f6
commit
4abddc4a75
@ -1281,7 +1281,7 @@ class LVM:
|
|||||||
_print("WARN: (%s) does not match lvs output format" % lv)
|
_print("WARN: (%s) does not match lvs output format" % lv)
|
||||||
continue
|
continue
|
||||||
lv_info_dict = {}
|
lv_info_dict = {}
|
||||||
for index in xrange(len(param_names)):
|
for index in range(len(param_names)):
|
||||||
lv_info_dict[param_names[index]] = m.group(index + 1)
|
lv_info_dict[param_names[index]] = m.group(index + 1)
|
||||||
lv_list.append(lv_info_dict)
|
lv_list.append(lv_info_dict)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user