← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1486136] [NEW] Neutron create_flavor_service_profile returns list not dict

 

Public bug reported:

The Neutron flavor framework routine create_flavor_service_profile
incorrectly returns a list instead of the expected dictionary.

For example, this causes an internal server error in _exclude_attributes_by_policy when using curl to create a Neutron flavor service profile:
File "/opt/stack/neutron/neutron/api/v2/base.py", line 143, in _exclude_attributes_by_policy
for attr_name in data.keys():
AttributeError: 'list' object has no attribute 'keys'

** Affects: neutron
     Importance: Undecided
     Assignee: James Arendt (james-arendt-7)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => James Arendt (james-arendt-7)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1486136

Title:
  Neutron create_flavor_service_profile returns list not dict

Status in neutron:
  New

Bug description:
  The Neutron flavor framework routine create_flavor_service_profile
  incorrectly returns a list instead of the expected dictionary.

  For example, this causes an internal server error in _exclude_attributes_by_policy when using curl to create a Neutron flavor service profile:
  File "/opt/stack/neutron/neutron/api/v2/base.py", line 143, in _exclude_attributes_by_policy
  for attr_name in data.keys():
  AttributeError: 'list' object has no attribute 'keys'

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1486136/+subscriptions


Follow ups