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

Getting an AdminVdc does not populate the ResourcePoolRefs property correctly #482

Closed
ArnoSen opened this issue Jun 10, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ArnoSen
Copy link

ArnoSen commented Jun 10, 2022

Describe the bug

When retrieving an AdminVdc, the ResourcePoolRefs property is empty but when observing the raw xml, there are results.

Reproduction steps

Run the tests in https://github.com/ArnoSen/go-vcloud-director/blob/UNMARSHAL_OF_ADMINVDC_FAILING_TEST/types/v56/types_test.go

and they will fail.

The test uses a adminVcd xml representation that was taken from one of our test vcloud instances.
ResourcePoolRefs are not populated.

Expected behavior

I expect the resouce pool reference contains one reference with the values from the below xml content:

+    <ResourcePoolRefs>
+        <vmext:VimObjectRef>
+            <vmext:VimServerRef href="https://testcloud/api/admin/extension/vimServer/d5b16253-9f4b-4652-936c-bee560901797" id="urn:vcloud:vimserver:d5b16253-9f4b-4652-936c-bee560901797" type="application/vnd.vmware.admin.vmwvirtualcenter+xml" name="VC"/>
+            <vmext:MoRef>resgroup-1696</vmext:MoRef>
+            <vmext:VimObjectType>RESOURCE_POOL</vmext:VimObjectType>
+        </vmext:VimObjectRef>
+    </ResourcePoolRefs>

Additional context

No response

@Didainius
Copy link
Collaborator

Solved in #494

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants