[openstack-dev] [openstack][nova][nova-api] index() method in InstanceUsageAuditLogController return an object rather than a list

int32bit krystism at gmail.com
Wed Dec 14 02:43:07 UTC 2016


Hi, all. As we know, the "index()" method usually return object list and
the "show()" method return an object for detail in api's controller. But I
found in our InstanceUsageAuditLogController[1], the 'index' method return
an object, I'm really not sure that index() is buggy, and I wonder what it
is intended to do and what might be needed to fix it.

Some discussion about this topic: https://review.openstack.org/#/c/409413/
.

Thanks for your attention.


[1]
https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/instance_usage_audit_log.py#L43
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20161214/ecb44138/attachment.html>


More information about the OpenStack-dev mailing list