@vm_util.Retry(max_retries=3)
  def _CreateDependencies(self):
    """Create VM dependencies."""

    # Create an ssh keypair
    with open(self.ssh_public_key) as keyfd:
        self.ssh_keypair_name = FLAGS.run_uri % 'perfkit-sshkey-%s'
        pub_key = keyfd.read()

        if not self.cs.get_ssh_keypair(self.ssh_keypair_name, self.project_id):

            res = self.cs.register_ssh_keypair(self.ssh_keypair_name,
                                               pub_key,
                                               self.project_id)

            assert res, "Unable to create ssh keypair"


    # Allocate a public ip
    network_id = self.network.id
    if self.network.is_vpc:
        network_id = self.network.vpc_id

    public_ip = self.cs.alloc_public_ip(network_id, self.network.is_vpc)

    if public_ip:
        self.ip_address = public_ip['ipaddress']
        self.ip_address_id = public_ip['id']
    else:
        logging.warn("Unable to allocate public IP")
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/providers/cloudstack/cloudstack_virtual_machine.py/CloudStackVirtualMachine._CreateDependencies/swapped operands of `%`