[pve-devel] r6453 - pve-manager/pve2/lib/PVE/API2

svn-commits at proxmox.com svn-commits at proxmox.com
Thu Aug 11 07:33:15 CEST 2011


Author: dietmar
Date: 2011-08-11 07:33:15 +0200 (Thu, 11 Aug 2011)
New Revision: 6453

Modified:
   pve-manager/pve2/lib/PVE/API2/Network.pm
Log:
fix lock_file call


Modified: pve-manager/pve2/lib/PVE/API2/Network.pm
===================================================================
--- pve-manager/pve2/lib/PVE/API2/Network.pm	2011-08-11 05:30:25 UTC (rev 6452)
+++ pve-manager/pve2/lib/PVE/API2/Network.pm	2011-08-11 05:33:15 UTC (rev 6453)
@@ -170,7 +170,7 @@
 	    PVE::INotify::write_file('interfaces', $config);
 	};
 
-	PVE::Tools::lock_file($iflockfn, 10, "network config", $code);
+	PVE::Tools::lock_file($iflockfn, 10, $code);
 	die $@ if $@;
 
 	return undef;
@@ -228,7 +228,7 @@
 	    PVE::INotify::write_file('interfaces', $config);
 	};
 
-	PVE::Tools::lock_file($iflockfn, 10, "network config", $code);
+	PVE::Tools::lock_file($iflockfn, 10, $code);
 	die $@ if $@;
 
 	return undef;
@@ -306,7 +306,7 @@
 	    PVE::INotify::write_file('interfaces', $config);
 	};
 
-	PVE::Tools::lock_file($iflockfn, 10, "network config", $code);
+	PVE::Tools::lock_file($iflockfn, 10, $code);
 	die $@ if $@;
 
 	return undef;




More information about the pve-devel mailing list