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

vdc.GetMetadata() has index issues when accessing the vdcs as a system org user #461

Closed
bogi0704 opened this issue Apr 5, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@bogi0704
Copy link

bogi0704 commented Apr 5, 2022

Describe the bug

I am using the vdc.GetMetadata() funtion as a user belonging to the system organization. I get the following error when calling this as a system user:

runtime error: index out of range [1] with length 1

This is happening because the function GetMetadata() uses the function getAdminVdcURL to get the admin url. But the url this function gets is already an admin url, since I am accessing the Metadata as a system user.

Reproduction steps

1. Authenticate as a system org user
2. try to call vdc.GetMetadata()

Expected behavior

The vdc.GetMetadata() should be able to distinguish if it needs to get the admin url or just use the one that the vdc object has.

Additional context

I will open a pull request to fix this issue.

@adambarreiro
Copy link
Collaborator

Closing as done in #473

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

2 participants