0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-06-30 02:31:10 +00:00

fix(cluster): insecure migration_type validation (#1607)

fix(provider): fix insecure migration_type validation

Signed-off-by: dgriswo <daniel@griswoldcomputing.com>
This commit is contained in:
dgriswo 2024-11-03 15:48:53 -05:00 committed by GitHub
parent fea548c1e9
commit 0ba36e48da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ resource "proxmox_virtual_environment_cluster_options" "options" {
- `mac_prefix` (String) Prefix for autogenerated MAC addresses.
- `max_workers` (Number) Defines how many workers (per node) are maximal started on actions like 'stopall VMs' or task from the ha-manager.
- `migration_cidr` (String) Cluster wide migration network CIDR.
- `migration_type` (String) Cluster wide migration type. Must be `secure` | `unsecure` (default is `secure`).
- `migration_type` (String) Cluster wide migration type. Must be `secure` | `insecure` (default is `secure`).
- `next_id` (Attributes) The ranges for the next free VM ID auto-selection pool. (see [below for nested schema](#nestedatt--next_id))
- `notify` (Attributes) Cluster-wide notification settings. (see [below for nested schema](#nestedatt--notify))

View File

@ -537,12 +537,12 @@ func (r *clusterOptionsResource) Schema(
},
"migration_type": schema.StringAttribute{
Description: "Cluster wide migration type.",
MarkdownDescription: "Cluster wide migration type. Must be `secure` | `unsecure` " +
MarkdownDescription: "Cluster wide migration type. Must be `secure` | `insecure` " +
"(default is `secure`).",
Optional: true,
Validators: []validator.String{stringvalidator.OneOf([]string{
"secure",
"unsecure",
"insecure",
}...)},
},
"migration_cidr": schema.StringAttribute{