[pve-devel] r5383 - pve-manager/pve2/bin

svn-commits at proxmox.com svn-commits at proxmox.com
Thu Jan 13 10:35:08 CET 2011


Author: dietmar
Date: 2011-01-13 10:35:08 +0100 (Thu, 13 Jan 2011)
New Revision: 5383

Modified:
   pve-manager/pve2/bin/pvesh
Log:
run update for every command


Modified: pve-manager/pve2/bin/pvesh
===================================================================
--- pve-manager/pve2/bin/pvesh	2011-01-13 08:18:09 UTC (rev 5382)
+++ pve-manager/pve2/bin/pvesh	2011-01-13 09:35:08 UTC (rev 5383)
@@ -142,8 +142,6 @@
 sub call_method {
     my ($dir, $cmd, $args) = @_;
 
-    PVE::Cluster::cfs_update();
-
     my $method = map_cmd($cmd);
 
     my $uri_param = {};
@@ -321,6 +319,8 @@
 sub pve_command {
     my $input = shift;
 
+    PVE::Cluster::cfs_update();
+
     my $args = [ shellwords($input) ];
 
     my $cmd = shift @$args;




More information about the pve-devel mailing list