From 159aad3ead4d5892cacf8a72b13469760beef757 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 18 Sep 2015 11:07:03 +0200 Subject: [PATCH] specify data format for hostname, searchdomain and nameserver --- src/PVE/LXC.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index ae8342b..3e1e5aa 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -140,7 +140,7 @@ my $confdesc = { hostname => { optional => 1, description => "Set a host name for the container.", - type => 'string', + type => 'string', format => 'dns-name', maxLength => 255, }, description => { @@ -150,12 +150,12 @@ my $confdesc = { }, searchdomain => { optional => 1, - type => 'string', + type => 'string', format => 'dns-name-list', description => "Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain or nameserver.", }, nameserver => { optional => 1, - type => 'string', + type => 'string', format => 'address-list', description => "Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain or nameserver.", }, rootfs => get_standard_option('pve-ct-rootfs'), -- 2.39.2