def get_config_drive_type():
 if (CONF.config_drive_format == 'iso9660'):
  config_drive_type = 'cdrom'
 elif (CONF.config_drive_format == 'vfat'):
  config_drive_type = 'disk'
 else:
  raise exception.ConfigDriveUnknownFormat(format=CONF.config_drive_format)
 return config_drive_type

def get_config_drive_type ( ) : if ( CONF . config_drive_format == 'iso9660' ) : config_drive_type = 'cdrom' elif ( CONF . config_drive_format == 'vfat' ) : config_drive_type = 'disk' else : raise exception . ConfigDriveUnknownFormat ( format = CONF . config_drive_format ) return config_drive_type
determine the type of config drive .