module-list fails with AccessInfoV2 error

Bug #1607428 reported by Peter Stachowski
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Medium
Peter Stachowski

Bug Description

Due to recent changes (not sure what) the trove module-list command now fails while trying to determine if the client is being run as an admin user.

This code should be changed so that it doesn't fail even if the structure of the access object changes.

Right now the error is:

  DEBUG (shell:752) 'AccessInfoV2' object has no attribute '__getitem__'
  Traceback (most recent call last):
    File "/opt/python-troveclient/python-troveclient/troveclient/shell.py", line 747, in main
      sys.argv[1:]))
    File "/opt/python-troveclient/python-troveclient/troveclient/shell.py", line 562, in main
      args.func(self.cs, args)
    File "/opt/python-troveclient/python-troveclient/troveclient/v1/shell.py", line 1552, in do_module_list
      roles = cs.client.auth.auth_ref['user']['roles']
  TypeError: 'AccessInfoV2' object has no attribute '__getitem__'
  ERROR: 'AccessInfoV2' object has no attribute '__getitem__'

Changed in trove:
assignee: nobody → Peter Stachowski (peterstac)
importance: Undecided → Medium
milestone: none → next
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/python-troveclient 2.4.0

This issue was fixed in the openstack/python-troveclient 2.4.0 release.

Changed in trove:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.