Comment 0 for bug 1763347

Revision history for this message
Thomas Morin (tmmorin-orange) wrote :

The code at [1] for extending the resource map with the standard attributes for a resource declared in api_collections, does only work for plain resources, but not for sub-resources (it produces a {'resource': attribute_dict} dictionary, while a {'resource': {'parameters': attribute_dict}} would be required by the code at [2].

This makes it impossible to add standard attributes to sub-resources.

[1] http://codesearch.openstack.org/?q=rs_map %3D standard_attr.get_standard_attr_resource_model_map

[2] http://git.openstack.org/cgit/openstack/neutron/tree/neutron/api/extensions.py#n349