[pve-devel] r5953 - qemu-server/pve2/PVE/API2

svn-commits at proxmox.com svn-commits at proxmox.com
Tue May 10 09:09:42 CEST 2011


Author: dietmar
Date: 2011-05-10 09:09:42 +0200 (Tue, 10 May 2011)
New Revision: 5953

Modified:
   qemu-server/pve2/PVE/API2/Qemu.pm
Log:


Modified: qemu-server/pve2/PVE/API2/Qemu.pm
===================================================================
--- qemu-server/pve2/PVE/API2/Qemu.pm	2011-05-10 07:07:59 UTC (rev 5952)
+++ qemu-server/pve2/PVE/API2/Qemu.pm	2011-05-10 07:09:42 UTC (rev 5953)
@@ -139,7 +139,6 @@
 	my $err = $@;
 
 	if ($err) {
-	    # fixme ? syslog ('err', "VM $vmid create failed - $err");
 	    foreach my $volid (@$vollist) {
 		eval { PVE::Storage::vdisk_free ($storecfg, $volid); };
 		warn $@ if $@;
@@ -472,7 +471,7 @@
 	my $user = $rpcenv->get_user();
 	my $ticket = PVE::AccessControl::assemble_ticket($user);
 
-	my ($vmid) = $param->{vmid} =~ m/^(\d+)$/; #untaint
+	my $vmid = $param->{vmid};
 	my $node = $param->{node};
 
 	$sslcert = PVE::Tools::file_get_contents("/etc/pve/pve-root-ca.pem", 8192)




More information about the pve-devel mailing list