Resource types table improvement
To make clear that "AWS" is a compatibility layer and not actual AWS, it's better to use "AWS compatible" instead of "Amazon Web Services" for the resource types table. Partially implements blueprint: heat-ui-improvement Change-Id: Ib44046253f5f921765ff6e3726f1d26edf422973
This commit is contained in:
parent
04b692cc30
commit
1eba7895e3
|
@ -21,8 +21,9 @@ class ResourceTypesTable(tables.DataTable):
|
|||
def get_raw_data(self, datum):
|
||||
attr_list = ['implementation', 'component', 'resource']
|
||||
info_list = datum.resource_type.split('::')
|
||||
info_list[0] = info_list[0].replace("AWS", "Amazon Web Services").\
|
||||
replace("OS", "OpenStack")
|
||||
info_list[0] = info_list[0].replace("OS", "OpenStack")
|
||||
if info_list[0] == "AWS":
|
||||
info_list[0] = _("AWS compatible")
|
||||
info_dict = dict(zip(attr_list, info_list))
|
||||
return info_dict[self.transform]
|
||||
|
||||
|
|
Loading…
Reference in New Issue