Modify get_disk_slots function according to virttest.