Fixing an issue where a unique id was not being returned for the overview table, causing the same information to be rendered for instances with the same name but differing stats. Fixes bug #959489

Change-Id: I78050462903e1b971d0a219805d19c5f728e23f7
This commit is contained in:
John Postlethwait 2012-03-22 13:51:18 -07:00
parent 67f366381f
commit a80da1a2de
2 changed files with 6 additions and 1 deletions

View File

@ -954,6 +954,11 @@ class DataTable(object):
By default this returns an ``id`` attribute on the given object,
but this can be overridden to return other values.
.. warning::
Make sure that the value returned is a unique value for the id
otherwise rendering issues can occur.
"""
return datum.id

View File

@ -49,7 +49,7 @@ class TenantUsageTable(BaseUsageTable):
filters=(timesince,))
def get_object_id(self, datum):
return datum['name']
return id(datum)
class Meta:
name = "tenant_usage"