#NEWLINE# def get_next_disk_info( mapping , disk_bus , device_type = 'disk' , last_device = False , boot_index = None , assigned_devices = None ) : #NEWLINE# #INDENT# 'Determine the disk info for the next device on disk_bus.\n\n       Considering the disks already listed in the disk mapping,\n       determine the next available disk dev that can be assigned\n       for the disk bus.\n\n       Returns the disk_info for the next available disk.\n    ' #NEWLINE# disk_dev = find_disk_dev_for_disk_bus ( mapping , info , last_device , assigned_devices ) #NEWLINE# info = { #NEWLINE# #INDENT# 'bus' : disk_bus , #NEWLINE# 'dev' : disk_dev , #NEWLINE# 'type' : device_type , #NEWLINE# #UNINDENT# } #NEWLINE# if ( ( boot_index is not None ) and ( boot_index >= 0 ) ) : #NEWLINE# #INDENT# info [ 'boot_index' ] = str ( boot_index ) #NEWLINE# #UNINDENT# return info