Update instance link formation due to changes in Havana

Fixes-bug: #1262713

Change-Id: I56e174f35ef4a60cffe31b0e619b53845a701ad6
This commit is contained in:
Ekaterina Fedorova 2013-12-19 19:17:49 +04:00
parent 828a9d5982
commit e21ba67818

View File

@ -87,13 +87,13 @@ class OverviewTab(tabs.Tab):
instances = nova_api.server_list(request)[0]
# HEAT always adds e before instance name
instance_name = 'e' + environment_id + '.' + instance_hostname
instance_name = 'e' + environment_id + '-' + instance_hostname
for instance in instances:
if instance.name == instance_name:
if instance_name in instance.name:
unit_detail['instance'] = {
'id': instance.id,
'name': instance_name
'name': instance.name
}
break