def destroy_vm(self, vm_name):
        """Destroy single vm and delete all allocated resources."""
        print("Destroy VM %s" % vm_name)
        vconnection = self._get_virt_connection_url(self.config["connection"])

        cmd = ["virsh", vconnection % "--connect=%s", "destroy", vm_name]
        subprocess.check_call(cmd)

        cmd = ["virsh", "--connect=%s" % vconnection, "undefine", vm_name,
               "--remove-all-storage"]
        subprocess.check_call(cmd)
        return True
dataset/ETHPy150Open openstack/rally/rally/deployment/serverprovider/providers/virsh.py/VirshProvider.destroy_vm/swapped operands of `%`