Skip to content

Commit 1c93695

Browse files
authored
Fix NPE error when assigning VM Classes that don't specify their name (#97)
Signed-off-by: abarreiro <abarreiro@vmware.com>
1 parent 351e7b2 commit 1c93695

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/hashicorp/go-version v1.7.0
1111
github.com/hashicorp/terraform-plugin-sdk/v2 v2.36.1
1212
github.com/hashicorp/terraform-plugin-testing v1.12.0
13-
github.com/vmware/go-vcloud-director/v3 v3.0.0-alpha.44
13+
github.com/vmware/go-vcloud-director/v3 v3.0.0-alpha.45
1414
k8s.io/apimachinery v0.33.0
1515
k8s.io/client-go v0.33.0
1616
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ github.com/vmihailenco/msgpack/v5 v5.4.1 h1:cQriyiUvjTwOHg8QZaPihLWeRAAVoCpE00IU
192192
github.com/vmihailenco/msgpack/v5 v5.4.1/go.mod h1:GaZTsDaehaPpQVyxrf5mtQlH+pc21PIudVV/E3rRQok=
193193
github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=
194194
github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
195-
github.com/vmware/go-vcloud-director/v3 v3.0.0-alpha.44 h1:678TePKhfoU0SXV845QmPO8N9BqovfVXghOUv58wBPs=
196-
github.com/vmware/go-vcloud-director/v3 v3.0.0-alpha.44/go.mod h1:invLcnnzb9UKXnzWPCu4O9NUD3niS+7GPOFcKpGqCqY=
195+
github.com/vmware/go-vcloud-director/v3 v3.0.0-alpha.45 h1:kzO/bNM+50R3EqCDYPb7IKywnRwL0vSajfrGPaIBt9I=
196+
github.com/vmware/go-vcloud-director/v3 v3.0.0-alpha.45/go.mod h1:od9X8D09sA7zzsnDNnEOgzT/5OYdKIaNDdULIJneghs=
197197
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
198198
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
199199
github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM=

vcfa/remove_leftovers_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ var doNotDelete = entityList{
3838
// alsoDelete contains a list of entities that should be removed , in addition to the ones
3939
// found by name matching
4040
// Add to this list if you ever get an entity left behind by a test
41-
var alsoDelete = entityList{
42-
// {Type: "vcfa_xxx", Name: "custom-name", Comment: "manually created"},
43-
}
41+
var alsoDelete = entityList{}
4442

4543
// isTest is a regular expression that tells if an entity needs to be deleted
4644
var isTest = regexp.MustCompile(`^[Tt]est`)

0 commit comments

Comments
 (0)