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

[receiver/vcenter] Fixes Client Virtual App Call Error When No Virtual Apps #33102

Conversation

StefanKurek
Copy link
Contributor

Description:
Virtual Apps might not exist in an environment. Currently a NotFound error for the internal client is thrown when this condition occurs. I modified this to simply return an empty array, because this should simply mean that it did not find any Virtual Apps. I also added more client unit tests to test for these types of conditions.

Link to tracking Issue:
#33073 (loosely tied to this. At the very least this issue made me discover this problem)

Testing:
Added new unit tests which showed the error. Fix caused the new unit test to pass.

Documentation:
N/A

@StefanKurek StefanKurek requested a review from djaglowski as a code owner May 16, 2024 19:44
@StefanKurek StefanKurek requested a review from a team May 16, 2024 19:44
@github-actions github-actions bot requested a review from schmikei May 16, 2024 19:44
@StefanKurek StefanKurek force-pushed the fix/vcenterreceiver-errors-on-empty-vApps branch from 348d848 to d12e4d8 Compare May 16, 2024 20:05
@djaglowski djaglowski merged commit dbdc463 into open-telemetry:main May 16, 2024
162 checks passed
@StefanKurek StefanKurek deleted the fix/vcenterreceiver-errors-on-empty-vApps branch May 16, 2024 20:36
@github-actions github-actions bot added this to the next release milestone May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants