(context, disk_list, num_of_local_ssd)
return disk_list + local_ssd_disks
Apends local ssds.
Apends local ssds.
Apends local ssds .
def AppendLocalSSDDisks(context, disk_list, num_of_local_ssd):
  """Apends local ssds."""
  project = context.env[default.PROJECT]
  prop = context.properties
  zone = prop.setdefault(ZONE, DEFAULT_ZONE)
  local_ssd_disks = []
  for i in range(0, num_of_local_ssd):
    local_ssd_disks.append({
        'deviceName': 'local-ssd-%s' % i,
        'type': SCRATCH,
        'interface': 'SCSI',
        'mode': 'READ_WRITE',
        'autoDelete': True,
        'initializeParams': {'diskType': common.LocalComputeLink(
            project, zone, 'diskTypes', 'local-ssd')}
    })
  return disk_list + local_ssd_disks
def AppendLocalSSDDisks ( context , disk_list , num_of_local_ssd ) : project = context . env [ default . PROJECT ] prop = context . properties zone = prop . setdefault ( ZONE , DEFAULT_ZONE ) local_ssd_disks = [ ] for i in range ( 0 , num_of_local_ssd ) : local_ssd_disks . append ( { 'deviceName' : 'local-ssd-%s' % i , 'type' : SCRATCH , 'interface' : 'SCSI' , 'mode' : 'READ_WRITE' , 'autoDelete' : True , 'initializeParams' : { 'diskType' : common . LocalComputeLink ( project , zone , 'diskTypes' , 'local-ssd' ) } } ) return disk_list + local_ssd_disks