vmware / go-vcloud-director

Golang SDK for VMware Cloud Director
Other
80 stars 76 forks source link

Nil point dereference in govcd.(*VApp).UpdateNetworkAsync #554

Closed gaetanars closed 1 year ago

gaetanars commented 1 year ago

Describe the bug

github.com/vmware/go-vcloud-director/v2/govcd.(*VApp).UpdateNetworkAsync(0x7f45df45e108?, 0xc0004db440, 0x0)
        /home/ldpm8544/go/pkg/mod/github.com/vmware/go-vcloud-director/v2@v2.19.0/govcd/vapp.go:1077 +0x747

https://github.com/vmware/go-vcloud-director/blob/687a663dd40c1daf3164c878fd7d5447cb63dacf/govcd/vapp.go#L1076-L1078

networkToUpdate.Configuration.Features was never initialized

Reproduction steps

Use terraform VCD provider and try to update a vapp_network with vcd_vapp_network

Expected behavior

The network must be updated

Additional context

No response