Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump github.com/vmware/govmomi from 0.37.3 to 0.38.0 #2229

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/davecgh/go-spew v1.1.1
github.com/hashicorp/terraform-plugin-sdk/v2 v2.34.0
github.com/mitchellh/copystructure v1.2.0
github.com/vmware/govmomi v0.37.3
github.com/vmware/govmomi v0.38.0
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ github.com/vmihailenco/msgpack/v5 v5.4.1 h1:cQriyiUvjTwOHg8QZaPihLWeRAAVoCpE00IU
github.com/vmihailenco/msgpack/v5 v5.4.1/go.mod h1:GaZTsDaehaPpQVyxrf5mtQlH+pc21PIudVV/E3rRQok=
github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=
github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
github.com/vmware/govmomi v0.37.3 h1:L2y2Ba09tYiZwdPtdF64Ox9QZeJ8vlCUGcAF9SdODn4=
github.com/vmware/govmomi v0.37.3/go.mod h1:mtGWtM+YhTADHlCgJBiskSRPOZRsN9MSjPzaZLte/oQ=
github.com/vmware/govmomi v0.38.0 h1:UvQpLAOjDpO0JUxoPCXnEzOlEa/9kejO6K58qOFr6cM=
github.com/vmware/govmomi v0.38.0/go.mod h1:mtGWtM+YhTADHlCgJBiskSRPOZRsN9MSjPzaZLte/oQ=
github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM=
github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func FromID(c *rest.Client, id string) (*library.Library, error) {
}

// CreateLibrary creates a Content Library.
func CreateLibrary(d *schema.ResourceData, restclient *rest.Client, backings []library.StorageBackings) (string, error) {
func CreateLibrary(d *schema.ResourceData, restclient *rest.Client, backings []library.StorageBacking) (string, error) {
name := d.Get("name").(string)
log.Printf("[DEBUG] contentlibrary.CreateLibrary: Creating content library %s", name)
clm := library.NewManager(restclient)
Expand Down Expand Up @@ -453,15 +453,15 @@ func DeleteLibraryItem(c *rest.Client, item *library.Item) error {
}

// ExpandStorageBackings takes ResourceData, and returns a list of StorageBackings.
func ExpandStorageBackings(c *govmomi.Client, d *schema.ResourceData) ([]library.StorageBackings, error) {
func ExpandStorageBackings(c *govmomi.Client, d *schema.ResourceData) ([]library.StorageBacking, error) {
log.Printf("[DEBUG] contentlibrary.ExpandStorageBackings: Expanding OVF storage backing.")
sb := []library.StorageBackings{}
sb := []library.StorageBacking{}
for _, dsID := range d.Get("storage_backing").(*schema.Set).List() {
ds, err := datastore.FromID(c, dsID.(string))
if err != nil {
return nil, provider.Error(d.Id(), "ExpandStorageBackings", err)
}
sb = append(sb, library.StorageBackings{
sb = append(sb, library.StorageBacking{
DatastoreID: ds.Reference().Value,
Type: "DATASTORE",
})
Expand Down Expand Up @@ -502,7 +502,7 @@ func FlattenSubscription(d *schema.ResourceData, subscription *library.Subscript
}

// FlattenStorageBackings takes a list of StorageBackings, and returns a list of datastore IDs.
func FlattenStorageBackings(d *schema.ResourceData, sb []library.StorageBackings) error {
func FlattenStorageBackings(d *schema.ResourceData, sb []library.StorageBacking) error {
log.Printf("[DEBUG] contentlibrary.FlattenStorageBackings: Flattening OVF storage backing.")
sbl := []string{}
for _, backing := range sb {
Expand Down