In Stack Details do not display as links events leading to nowhere

Events that correspond to stack operations have the same physical id
as the stack has itself (and the same name), so the link which is
meant to point to some resource description, points to nowhere for
them. Better not render such links at all.

Change-Id: I2cff8efacbc00bed2989e5d4afee0690e712ad66
Closes-Bug: #1480997
This commit is contained in:
Timur Sufiev 2015-08-03 19:26:16 +03:00
parent faa6324280
commit 658f502b5d
1 changed files with 2 additions and 0 deletions

View File

@ -303,6 +303,8 @@ class StacksTable(tables.DataTable):
def get_resource_url(obj):
if obj.physical_resource_id == obj.stack_id:
return None
return urlresolvers.reverse('horizon:project:stacks:resource',
args=(obj.stack_id, obj.resource_name))