[pve-devel] [PATCH] Add dns name format to search value for update_dns method

Damien PIQUET piqudam at gmail.com
Fri Mar 1 19:07:43 CET 2013


Signed-off-by: Damien PIQUET <piqudam at gmail.com>
---
 PVE/API2/Nodes.pm |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index 0dac6af..e35f01b 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -610,13 +610,13 @@ __PACKAGE__->register_method({
 	    node => get_standard_option('pve-node'),
 	    search => {
 		description => "Search domain for host-name lookup.",
-		type => 'string',
+		type => 'string', format => 'dns-name',
 	    },
 	    dns1 => {
 		description => 'First name server IP address.',
 		type => 'string', format => 'ipv4',
 		optional => 1,
-	    },		
+	    },
 	    dns2 => {
 		description => 'Second name server IP address.',
 		type => 'string', format => 'ipv4',
-- 
1.7.10.4




More information about the pve-devel mailing list