You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 22, 2020. It is now read-only.
Both responses contain a "count" number and a "domain" array.
The problem is that BaseClient() returns the responses differently:
listDomains returns an object starting with the contents of the "domain" array (leaving out the top-level structure with the "count" number and "domain" array key/definition)
Issue in BaseClient.py, lines 48-62
https://github.com/jasonhancock/cloudstack-python-client/blob/master/CloudStack/BaseClient.py#L48-62
Example
listDomains returns a JSON structure like this:
listDomainChildren returns a JSON structure like this:
Both responses contain a "count" number and a "domain" array.
The problem is that BaseClient() returns the responses differently:
The issue is with the regex matching stuff:
Possible solution
Workaround
In order to get the same result structure for listDomains and listDomainChildren, I have to work around it like this:
The text was updated successfully, but these errors were encountered: