quota show returns "object is not iterable"

Bug #1652118 reported by Michael Foster on 2016-12-22
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
python-openstackclient
New
Undecided
Unassigned

Bug Description

Updated to latest version of python-openstack client (3.6.0) in a virtualenv and tried to use openstack cli to show quotas. However, I get the following:

'Quota' object is not iterable
Traceback (most recent call last):
  File "/Users/MFoster/OpenStack/python-clients/venv3.0/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/Users/MFoster/OpenStack/python-clients/venv3.0/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/Users/MFoster/OpenStack/python-clients/venv3.0/lib/python2.7/site-packages/cliff/display.py", line 112, in run
    column_names, data = self.take_action(parsed_args)
  File "/Users/MFoster/OpenStack/python-clients/venv3.0/lib/python2.7/site-packages/openstackclient/common/quota.py", line 280, in take_action
    info.update(network_quota_info)
TypeError: 'Quota' object is not iterable
clean_up ShowQuota: 'Quota' object is not iterable
Traceback (most recent call last):
  File "/Users/MFoster/OpenStack/python-clients/venv3.0/lib/python2.7/site-packages/osc_lib/shell.py", line 135, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/Users/MFoster/OpenStack/python-clients/venv3.0/lib/python2.7/site-packages/cliff/app.py", line 279, in run
    result = self.run_subcommand(remainder)
  File "/Users/MFoster/OpenStack/python-clients/venv3.0/lib/python2.7/site-packages/osc_lib/shell.py", line 180, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/Users/MFoster/OpenStack/python-clients/venv3.0/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/Users/MFoster/OpenStack/python-clients/venv3.0/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/Users/MFoster/OpenStack/python-clients/venv3.0/lib/python2.7/site-packages/cliff/display.py", line 112, in run
    column_names, data = self.take_action(parsed_args)
  File "/Users/MFoster/OpenStack/python-clients/venv3.0/lib/python2.7/site-packages/openstackclient/common/quota.py", line 280, in take_action
    info.update(network_quota_info)
TypeError: 'Quota' object is not iterable

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers