Skip to content

Commit

Permalink
fix: add 8.0.3 to dvsVersions
Browse files Browse the repository at this point in the history
Adds 8.0.3 to the allowed `dvsVersions` to support vSphere 8.0 U3.

Signed-off-by: Ryan Johnson <[email protected]>
  • Loading branch information
tenthirtyam committed Dec 4, 2024
1 parent 59dc020 commit 7acbefa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## .Next (Not Released)

IMPROVEMENTS:

- `resource/distributed_virtual_switch`: Added support for vSphere distributed switch version `8.0.3` in vSphere 8.0 U3. [(2306](https://github.com/hashicorp/terraform-provider-vsphere/pull/2306))

CHORE:

- `provider`: Updated `golang/go` to v1.22.8.
Expand Down
1 change: 1 addition & 0 deletions vsphere/distributed_virtual_switch_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var dvsVersions = []string{
"7.0.2",
"7.0.3",
"8.0.0",
"8.0.3",
}

// dvsFromUUID gets a DVS object from its UUID.
Expand Down
2 changes: 1 addition & 1 deletion vsphere/distributed_virtual_switch_structure.go
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ func schemaDVSCreateSpec() map[string]*schema.Schema {
"version": {
Type: schema.TypeString,
Computed: true,
Description: "The version of this virtual switch. Allowed versions are 8.0.0, 7.0.3, 7.0.2, 7.0.0, 6.6.0, 6.5.0, 6.0.0, 5.5.0, 5.1.0, and 5.0.0.",
Description: "The version of this virtual switch. Allowed versions are 8.0.3, 8.0.0, 7.0.3, 7.0.2, 7.0.0, 6.6.0, 6.5.0, 6.0.0, 5.5.0, 5.1.0, and 5.0.0.",
Optional: true,
ValidateFunc: validation.StringInSlice(dvsVersions, false),
},
Expand Down

0 comments on commit 7acbefa

Please sign in to comment.