From 7ae8951733e67ebe59a3b06e0bbab66a36b56bd1 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 3 Jun 2016 14:07:08 +0200 Subject: [PATCH] use correct verify function for ha-group-node-list We use pve_verify_nodename but we expect here a value with the syntax: nodename[:priority] So if someone used the optional priority this failed unecessarily. select_service_node in the Manager class expects this value and splits it itself into nodename and priority so we can just return it if it matches the ha-group-node-list format. Signed-off-by: Thomas Lamprecht --- src/PVE/HA/Groups.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/HA/Groups.pm b/src/PVE/HA/Groups.pm index 2e9fe13..9214764 100644 --- a/src/PVE/HA/Groups.pm +++ b/src/PVE/HA/Groups.pm @@ -64,7 +64,7 @@ sub decode_value { my $res = {}; foreach my $node (PVE::Tools::split_list($value)) { - if (PVE::JSONSchema::pve_verify_node_name($node)) { + if (PVE::HA::Tools::pve_verify_ha_group_node($node)) { $res->{$node} = 1; } } -- 2.39.2