Comment 1 for bug 1452546

Revision history for this message
Dimitri Mazmanov (sorantis) wrote :

Looking at translator/hot/translate_node_templates.py
It seems that this aliasing could be achieved by using multi-key dicts such as https://pypi.python.org/pypi/multi_key_dict/ or any custom multi key dict.
e.g.

TOSCA_TO_HOT_TYPE['tosca.nodes.Compute', 'Compute', 'tosca:Compute'] = ToscaCompute
TOSCA_TO_HOT_TYPE['tosca.nodes.network.Network', 'Network', 'tosca:Network'] = ToscaNetwork