[pve-devel] r6373 - in pve-common/trunk/data: . PVE
svn-commits at proxmox.com
svn-commits at proxmox.com
Thu Jul 28 07:26:46 CEST 2011
Author: dietmar
Date: 2011-07-28 07:26:46 +0200 (Thu, 28 Jul 2011)
New Revision: 6373
Modified:
pve-common/trunk/data/ChangeLog
pve-common/trunk/data/PVE/JSONSchema.pm
Log:
* PVE/JSONSchema.pm (get_standard_option): register option
'pve-node-list'
Modified: pve-common/trunk/data/ChangeLog
===================================================================
--- pve-common/trunk/data/ChangeLog 2011-07-28 04:31:44 UTC (rev 6372)
+++ pve-common/trunk/data/ChangeLog 2011-07-28 05:26:46 UTC (rev 6373)
@@ -1,5 +1,8 @@
2011-07-28 Proxmox Support Team <support at proxmox.com>
+ * PVE/JSONSchema.pm (get_standard_option): register option
+ 'pve-node-list'
+
* PVE/Tools.pm (run_command): fix $laststderr (do not suppress
last line in some rare cases).
Modified: pve-common/trunk/data/PVE/JSONSchema.pm
===================================================================
--- pve-common/trunk/data/PVE/JSONSchema.pm 2011-07-28 04:31:44 UTC (rev 6372)
+++ pve-common/trunk/data/PVE/JSONSchema.pm 2011-07-28 05:26:46 UTC (rev 6373)
@@ -60,6 +60,11 @@
type => 'string', format => 'pve-node',
});
+register_standard_option('pve-node-list', {
+ description => "List of cluster node names.",
+ type => 'string', format => 'pve-node-list',
+});
+
register_standard_option('pve-iface', {
description => "Network interface name.",
type => 'string', format => 'pve-iface',
@@ -172,6 +177,7 @@
die "undefined format '$format'\n" if !$code;
+ # Note: we allow empty lists
foreach my $v (split_list($value)) {
&$code($v);
}
More information about the pve-devel
mailing list