pyvcloud icon indicating copy to clipboard operation
pyvcloud copied to clipboard

Cannot filter user roles after vcloud upgrade from 9.7 to 10.1.2

Open manuelmazzuola opened this issue 5 years ago • 1 comments

I cannot filter user roles after vcloud upgrade from 9.7 to 10.1.2.
The following snippet does work on vcloud 9.7, it doesn't on vcloud 10.1.2. I'm using pyvcloud 22.0.1 and api version 32.0.

from pyvcloud.vcd.org import Org

Org(client, href=my_org_href)
  .get_role_record(VCLOUD_ORG_ADMIN_ROLE)
pyvcloud/vcd/org.py", line 1128, in get_role_record
    'Role \'%s\' does not exist.' % role_name)
pyvcloud.vcd.exceptions.EntityNotFoundException: Role 'Organization Administrator' does not exist.

The .list_roles without any filters works,
it returns the full list of the roles, included the VCLOUD_ORG_ADMIN_ROLE that I'm looking for.

manuelmazzuola avatar Nov 02 '20 13:11 manuelmazzuola

The problem is the double encode of the filter query parameter

manuelmazzuola avatar Nov 02 '20 15:11 manuelmazzuola