Fix BlockStorageAttachment bug when translate compute node 91/19691/1
authorshangxdy <shang.xiaodong@zte.com.cn>
Sun, 28 Aug 2016 09:25:28 +0000 (17:25 +0800)
committershangxdy <shang.xiaodong@zte.com.cn>
Sun, 28 Aug 2016 09:25:28 +0000 (17:25 +0800)
commitaef34ad9a966ca64aa365ee6aaada702b986f68b
tree70978e5e43f052afbfcf615ce0cd45ea1f4349c7
parent654a44a7d3727f7f6d3fb61f70f7e63f9b6d8524
Fix BlockStorageAttachment bug when translate compute node

Currently, when translate compute node with local_storage and
high_availability, there is not BlockStorageAttache resource created
about block storage, and only BlockStorage created.
If only local_storage requirement in compute node, the result is
correct.
The reason is the function logic of _get_attachment_node is error. and
the patch will fixit.

JIRA:PARSER-100

Change-Id: I36456089ae65102d4b17797d266c850d8c16b29d
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
tosca2heat/heat-translator/translator/hot/translate_node_templates.py
tosca2heat/heat-translator/translator/tests/data/hot_output/hot_nfv_sample.yaml
tosca2heat/heat-translator/translator/tests/data/test_tosca_nfv_sample.yaml