[pve-devel] [PATCH access-control 1/2] properly register pve-poolid format

Philip Abernethy p.abernethy at proxmox.com
Tue Oct 10 15:44:18 CEST 2017


was erroneously registered as verify_groupname, overriding the previous
registration
---
 PVE/AccessControl.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/AccessControl.pm b/PVE/AccessControl.pm
index 07f0c21..f0fb7dc 100644
--- a/PVE/AccessControl.pm
+++ b/PVE/AccessControl.pm
@@ -564,7 +564,7 @@ sub verify_rolename {
     return $rolename;
 }
 
-PVE::JSONSchema::register_format('pve-poolid', \&verify_groupname);
+PVE::JSONSchema::register_format('pve-poolid', \&verify_poolname);
 sub verify_poolname {
     my ($poolname, $noerr) = @_;
 
-- 
2.11.0





More information about the pve-devel mailing list