[pve-devel] r4861 - in pve-manager/pve2: bin lib/PVE/API2

svn-commits at proxmox.com svn-commits at proxmox.com
Thu Jul 1 12:03:37 CEST 2010


Author: dietmar
Date: 2010-07-01 10:03:37 +0000 (Thu, 01 Jul 2010)
New Revision: 4861

Modified:
   pve-manager/pve2/bin/pvesh
   pve-manager/pve2/lib/PVE/API2/User.pm
Log:


Modified: pve-manager/pve2/bin/pvesh
===================================================================
--- pve-manager/pve2/bin/pvesh	2010-07-01 09:38:44 UTC (rev 4860)
+++ pve-manager/pve2/bin/pvesh	2010-07-01 10:03:37 UTC (rev 4861)
@@ -181,7 +181,7 @@
 
     my $opts = get_options($info, $args);
 
-    print "PUT $dir " . Dumper($opts) . "\n";
+    # print "PUT $dir " . Dumper($opts) . "\n";
 
     my $data = call_handler($handler, $info, $dir, $opts);
 

Modified: pve-manager/pve2/lib/PVE/API2/User.pm
===================================================================
--- pve-manager/pve2/lib/PVE/API2/User.pm	2010-07-01 09:38:44 UTC (rev 4860)
+++ pve-manager/pve2/lib/PVE/API2/User.pm	2010-07-01 10:03:37 UTC (rev 4861)
@@ -120,14 +120,18 @@
 	    comment => { type => 'string', optional => 1 },
 	},
     },
-    returns => {},
+    returns => { type => 'null' },
 }); 
 sub update_user {
     my ($conn, $resp, $param) = @_;
 
     my ($userid) = $conn->{rel_uri} =~ m|/([^/]+)$|;
 
-    return PVE::AccessControl::modify_user($userid, $param);
+    PVE::AccessControl::modify_user($userid, $param);
+
+    # fixme: maybe it is better to return the user data ?
+
+    return undef;
 }
 
 __PACKAGE__->register_method ({




More information about the pve-devel mailing list