def CreateScratchDisk(self, disk_spec):
    """Create a VM's scratch disk.

    Args:
      disk_spec: virtual_machine.BaseDiskSpec object of the disk.
    """

    # Cloudstack doesn't really have a concept of local or remote disks A VM
    # starts with one disk and all other volumes have to be attached via the
    # API

    self.disks = []

    for i in xrange(disk_spec.num_striped_disks):

        name = (self.name, i + 1, self.disk_counter) % 'disk-%s-%d-%d'
        scratch_disk = cloudstack_disk.CloudStackDisk(disk_spec,
                                                      name,
                                                      self.zone_id,
                                                      self.project_id)

        self.disks.append(scratch_disk)
        self.disk_counter += 1

    self._CreateScratchDiskFromDisks(disk_spec, self.disks)
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/providers/cloudstack/cloudstack_virtual_machine.py/CloudStackVirtualMachine.CreateScratchDisk/swapped operands of `%`