From d7e7723b5c8c12e2cda54e97d9d860895ff57cc9 Mon Sep 17 00:00:00 2001 From: Pedro Rocha Goncalves <47182547+pedro-te@users.noreply.github.com> Date: Mon, 3 Apr 2023 10:04:05 +0100 Subject: [PATCH] fix: dns_servers no longer enforce specific order (#132) --- docs/resources/dns_server.md | 2 +- thousandeyes/schemas.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/resources/dns_server.md b/docs/resources/dns_server.md index d1b2dea..8f71a26 100644 --- a/docs/resources/dns_server.md +++ b/docs/resources/dns_server.md @@ -34,7 +34,7 @@ resource "thousandeyes_dns_server" "example_dns_server_test" { ### Required - `agents` (Block Set, Min: 1) The list of ThousandEyes agents to use. (see [below for nested schema](#nestedblock--agents)) -- `dns_servers` (Block List, Min: 1) The array of DNS Server objects (“serverName”: “fqdn of server”). (see [below for nested schema](#nestedblock--dns_servers)) +- `dns_servers` (Block Set, Min: 1) The array of DNS Server objects (“serverName”: “fqdn of server”). (see [below for nested schema](#nestedblock--dns_servers)) - `domain` (String) See notes target record for test, suffixed by record type (ie, www.thousandeyes.com CNAME). If no record type is specified, the test will default to an ANY record. - `interval` (Number) The interval to run the test on, in seconds. - `test_name` (String) The name of the test. diff --git a/thousandeyes/schemas.go b/thousandeyes/schemas.go index 91a1090..369f993 100644 --- a/thousandeyes/schemas.go +++ b/thousandeyes/schemas.go @@ -495,7 +495,7 @@ var schemas = map[string]*schema.Schema{ Description: "The array of DNS Server objects (“serverName”: “fqdn of server”).", Optional: false, Required: true, - Type: schema.TypeList, + Type: schema.TypeSet, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "server_name": {