Commit bb2f6609 authored by Felix Seibert's avatar Felix Seibert
Browse files

fix some type errors

parent 56cf83aa
......@@ -45,13 +45,11 @@ class TestDataDistribution(unittest.TestCase):
ignore_osd_capacities=True)
osds_felix = distribution_felix.get_osd_list()
osds_felix_total_folder_sizes = list(map(lambda x: x.total_folder_size, osds_felix))
osds_felix_total_folder_sizes = list(map(lambda x: distribution_felix.OSDs[x].total_folder_size, osds_felix))
osds_farouk = distribution_farouk.get_osd_list()
osds_farouk_total_folder_sizes = list(map(lambda x: x.total_folder_size, osds_farouk))
osds_farouk_total_folder_sizes = list(map(lambda x: distribution_farouk.OSDs[x].total_folder_size, osds_farouk))
print('felix[0]: ' + str(osds_felix_total_folder_sizes[0]))
print('farouk[0]: ' + str(osds_farouk_total_folder_sizes[0]))
if osds_felix_total_folder_sizes[0] != osds_farouk_total_folder_sizes[0]:
felix_and_farouk_different = True
......@@ -80,8 +78,7 @@ class TestDataDistribution(unittest.TestCase):
def create_test_osd_list(num_osds):
test_osds = []
for i in range(0, num_osds):
new_osd = osd.OSD(osd_id_prefix + str(i))
test_osds.append(new_osd)
test_osds.append(osd_id_prefix + str(i))
return test_osds
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment