vmware / govmomi

Go library for the VMware vSphere API
Apache License 2.0
2.26k stars 896 forks source link

[BUG] VirtualAppList function can't handle nested Virtual Apps #3453

Open StefanKurek opened 1 month ago

StefanKurek commented 1 month ago

Describe the bug While using the vcenterreceiver in the OTEL Collector, I came across a bug with a bug in the VirtualAppList function. It does not handle nested Virtual Apps in the way that the ResourcePoolList function can handle nested Resource Pools. See the collector issue here for a more detailed description.

To Reproduce Steps to reproduce the behavior:

  1. Tried to use the VirtualAppList function with an environment that had a Virtual App nested directly underneath another Virtual App. In this case, only the parent Virtual App is returned.

Expected behavior Both Virtual Apps would be returned.

Affected version v0.36.3 (But I looked at the code of the newest version, and it doesn't appear to fix anything)

Screenshots/Debug Output NA

Additional context

github-actions[bot] commented 1 month ago

Howdy 🖐   StefanKurek ! Thank you for your interest in this project. We value your feedback and will respond soon.

If you want to contribute to this project, please make yourself familiar with the CONTRIBUTION guidelines.