def get_next_disk_info(mapping, disk_bus, device_type='disk', boot_index=None, assigned_devices=None):
 disk_dev = find_disk_dev_for_disk_bus(mapping, disk_bus, assigned_devices)
 info = {'bus': disk_bus, 'dev': disk_dev, 'type': device_type}
 if ((boot_index is not None) and (boot_index >= 0)):
  info['boot_index'] = str(boot_index)
 return info

def get_next_disk_info ( mapping , disk_bus , device_type = 'disk' , boot_index = None , assigned_devices = None ) : disk_dev = find_disk_dev_for_disk_bus ( mapping , disk_bus , assigned_devices ) info = { 'bus' : disk_bus , 'dev' : disk_dev , 'type' : device_type } if ( ( boot_index is not None ) and ( boot_index >= 0 ) ) : info [ 'boot_index' ] = str ( boot_index ) return info
determine the disk info for the next device on disk_bus .