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:
parent
faa6324280
commit
658f502b5d
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue