Skip to content

Commit

Permalink
fix(cluster): insecure migration_type validation (#1607)
Browse files Browse the repository at this point in the history
fix(provider): fix insecure migration_type validation

Signed-off-by: dgriswo <[email protected]>
  • Loading branch information
dgriswo authored Nov 3, 2024
1 parent fea548c commit 0ba36e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/resources/virtual_environment_cluster_options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
4 changes: 2 additions & 2 deletions fwprovider/resource_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 0ba36e4

Please sign in to comment.