From b10063f8cf223cf0ac1242d6d670182c0d3ca40e Mon Sep 17 00:00:00 2001 From: Pavel Boldyrev <627562+bpg@users.noreply.github.com> Date: Wed, 29 Nov 2023 18:02:40 -0500 Subject: [PATCH] fix(cluster): can't read back cluster options on PVE 8.1 Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com> --- .gitignore | 1 + .vscode/extensions.json | 7 +++++++ .vscode/launch.json | 2 +- .vscode/settings.json | 3 ++- fwprovider/resource_options.go | 1 + 5 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .vscode/extensions.json diff --git a/.gitignore b/.gitignore index 3463e99fd..d7cfed084 100644 --- a/.gitignore +++ b/.gitignore @@ -31,6 +31,7 @@ modules-dev/ *.tfstate *.tfstate.lock.info *.tfvars +*.env .*.swp .DS_Store diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 000000000..5a3c839da --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + "recommendations": [ + "davidanson.vscode-markdownlint", + "joshbolduc.commitlint", + "hashicorp.terraform", + ] +} diff --git a/.vscode/launch.json b/.vscode/launch.json index 306dd412e..3a41df33b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -2,7 +2,7 @@ "version": "0.2.0", "configurations": [ { - "name": "Debug provider", + "name": "Debug Provider", "type": "go", "request": "launch", "mode": "auto", diff --git a/.vscode/settings.json b/.vscode/settings.json index 1022d83cf..97eb39e49 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,5 +4,6 @@ "iothread", "qcow", "virtio" - ] + ], + "go.testEnvFile": "${workspaceFolder}/test.env", } diff --git a/fwprovider/resource_options.go b/fwprovider/resource_options.go index d49d5c637..2369f1c0a 100644 --- a/fwprovider/resource_options.go +++ b/fwprovider/resource_options.go @@ -381,6 +381,7 @@ func (r *clusterOptionsResource) Schema( "mac_prefix": schema.StringAttribute{ Description: "Prefix for autogenerated MAC addresses.", Optional: true, + Computed: true, }, "description": schema.StringAttribute{ Description: "Datacenter description. Shown in the web-interface datacenter notes panel. " +