mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
Merge branch 'master' into dev
This commit is contained in:
commit
5068287c76
1 changed files with 6 additions and 2 deletions
|
@ -387,9 +387,13 @@ def get_cluster_tags(cluster_type, enabled=False):
|
||||||
meta_tag = {'tag': tag, 'description': cluster_val.description}
|
meta_tag = {'tag': tag, 'description': cluster_val.description}
|
||||||
if enabled:
|
if enabled:
|
||||||
meta_tag['enabled'] = is_galaxy_tag_enabled(cluster_type, tag)
|
meta_tag['enabled'] = is_galaxy_tag_enabled(cluster_type, tag)
|
||||||
synonyms = cluster_val.meta.synonyms
|
cluster_val_meta = cluster_val.meta
|
||||||
|
if cluster_val_meta:
|
||||||
|
synonyms = cluster_val_meta.synonyms
|
||||||
if not synonyms:
|
if not synonyms:
|
||||||
synonyms = []
|
synonyms = []
|
||||||
|
else:
|
||||||
|
synonyms = []
|
||||||
meta_tag['synonyms'] = synonyms
|
meta_tag['synonyms'] = synonyms
|
||||||
tags.append(meta_tag)
|
tags.append(meta_tag)
|
||||||
return tags
|
return tags
|
||||||
|
|
Loading…
Reference in a new issue