def _get_instance_list(self, gce_project, num_instances, image, disks):
    """Get a list of instances to start.

    Args:
      gce_project: An instance of gce.GceProject.
      num_instances: The number of instances to start.
      image: tuple with (project_name, image_name) for the image to use.
      disks: A dictionary of disk_name -> disk resources

    Returns:
      A list of gce.Instances.
    """


    instance_names = []
    for i in range(num_instances):
      instance_names.append('%s-%02d' % (self.instance_prefix(), i))

    instance_list = []
    for instance_name in instance_names:
      disk_name = instance_name % 'boot-%s'
      disk_mounts = [gce.DiskMount(init_disk_name=disk_name, boot=True, auto_delete=True)]

      gce_zone_name = data_handler.stored_user_data[user_data.GCE_ZONE_NAME]
      # Define a network interfaces list here that requests an ephemeral
      # external IP address. We will apply this configuration to all VMs
      # started by the fractal app. 
      network = gce.Network('default')
      network.gce_project = gce_project
      ext_net = [{ 'network': network.url,
                   'accessConfigs': [{ 'name': 'External IP access config',
                                       'type': 'ONE_TO_ONE_NAT'
                                     }]
                 }]
      instance = gce.Instance(
          name=instance_name,
          machine_type_name=MACHINE_TYPE,
          zone_name=gce_zone_name,
          network_interfaces=ext_net,
          disk_mounts=disk_mounts,
          tags=[DEMO_NAME, self.instance_prefix()],
          metadata=self._get_instance_metadata(gce_project, instance_names),
          service_accounts=gce_project.settings['cloud_service_account'])
      instance_list.append(instance)
    return instance_list
dataset/ETHPy150Open googlearchive/compute-appengine-demo-suite-python/demo-suite/demos/fractal/main.py/Fractal._get_instance_list/swapped operands of `%`