From bf5cbd9dad116a4515bd2eb193c296097b1e4b84 Mon Sep 17 00:00:00 2001 From: Guillaume <4112243+LEI@users.noreply.github.com> Date: Thu, 28 Dec 2023 16:55:59 +0100 Subject: [PATCH] fix(vm,lxc): accept IPv6 in `initialization.dns.servers` attribute (#842) fix: accept ipv6 in dns servers initialization Signed-off-by: Guillaume <4112243+LEI@users.noreply.github.com> Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com> --- proxmoxtf/resource/container.go | 2 +- proxmoxtf/resource/vm.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/proxmoxtf/resource/container.go b/proxmoxtf/resource/container.go index f3819a56..eb01b394 100644 --- a/proxmoxtf/resource/container.go +++ b/proxmoxtf/resource/container.go @@ -398,7 +398,7 @@ func Container() *schema.Resource { Type: schema.TypeList, Description: "The list of DNS servers", Optional: true, - Elem: &schema.Schema{Type: schema.TypeString, ValidateFunc: validation.IsIPv4Address}, + Elem: &schema.Schema{Type: schema.TypeString, ValidateFunc: validation.IsIPAddress}, MinItems: 0, }, }, diff --git a/proxmoxtf/resource/vm.go b/proxmoxtf/resource/vm.go index 03226cf2..c57cbda4 100644 --- a/proxmoxtf/resource/vm.go +++ b/proxmoxtf/resource/vm.go @@ -897,7 +897,7 @@ func VM() *schema.Resource { Type: schema.TypeList, Description: "The list of DNS servers", Optional: true, - Elem: &schema.Schema{Type: schema.TypeString, ValidateFunc: validation.IsIPv4Address}, + Elem: &schema.Schema{Type: schema.TypeString, ValidateFunc: validation.IsIPAddress}, MinItems: 0, }, },