[pve-devel] r5008 - pve-common/trunk

svn-commits at proxmox.com svn-commits at proxmox.com
Mon Aug 16 13:00:57 CEST 2010


Author: dietmar
Date: 2010-08-16 11:00:57 +0000 (Mon, 16 Aug 2010)
New Revision: 5008

Modified:
   pve-common/trunk/ChangeLog
   pve-common/trunk/Tools.pm
Log:
	* Tools.pm (run_command): remove 'ticket' parameter - I think we
	do not need it.



Modified: pve-common/trunk/ChangeLog
===================================================================
--- pve-common/trunk/ChangeLog	2010-08-16 10:48:01 UTC (rev 5007)
+++ pve-common/trunk/ChangeLog	2010-08-16 11:00:57 UTC (rev 5008)
@@ -1,5 +1,8 @@
 2010-08-16  Proxmox Support Team  <support at proxmox.com>
 
+	* Tools.pm (run_command): remove 'ticket' parameter - I think we
+	do not need it.
+
 	* RESTHandler.pm (handle): remove ugly $resp parameter - we can
 	now use the new Expection object to return better error info.
 

Modified: pve-common/trunk/Tools.pm
===================================================================
--- pve-common/trunk/Tools.pm	2010-08-16 10:48:01 UTC (rev 5007)
+++ pve-common/trunk/Tools.pm	2010-08-16 11:00:57 UTC (rev 5008)
@@ -152,7 +152,6 @@
 
 	my $timeout;
 	my $input;
-	my $ticket;
 	my $outfunc;
 	my $errfunc;
 
@@ -167,8 +166,6 @@
 		    print STDERR "$laststderr\n" if $laststderr;
 		    $laststderr = shift; 
 		};
-	    } elsif ($p eq 'ticket') {
-		$ticket = $param{$p};
 	    } elsif ($p eq 'input') {
 		$input = $param{$p};
 	    } elsif ($p eq 'outfunc') {
@@ -192,8 +189,6 @@
 	    # suppress LVM warnings like: "File descriptor 3 left open";
 	    local $ENV{LVM_SUPPRESS_FD_WARNINGS} = "1";
 
-	    local $ENV{PVETICKET} = $ticket if $ticket;
-
 	    $pid = open3($writer, $reader, $error, @$cmd) || die $!;
 	};
 




More information about the pve-devel mailing list