diff options
author | 2016-08-19 02:02:46 +0800 | |
---|---|---|
committer | 2016-08-19 02:02:46 +0800 | |
commit | 13a0184de4e6c0c8f0935bfbd7627b72f142c6e9 (patch) | |
tree | c7fc83935400e61f1966714f598062dde33f24bf /tosca2heat/tosca-parser/toscaparser/tests | |
parent | 278a8fcc9ac9d18d8192d22aca50b39371894db5 (diff) |
Judge volume node is error when translate compute node
Currently, when translate a compute node in heat-translator, code is
below:
for requires in requirements:
for value in requires.values():
if isinstance(value, dict):
for node_name in value.values():
for n in self.nodetemplates:
if n.name == node_name:
volume_name = node_name
break
else: # unreachable code !
for n in self.nodetemplates:
if n.name == node_name:
volume_name = node_name
break
It's error in nfv tosca because there are more than one
requirements, So the unreachable code will reach.
Notes: the fix will submit to Openstack community.
JIRA:PARSER-92
Change-Id: Ife9c0d28ebe236c04d9d2c02f0025cf774bf6208
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
Diffstat (limited to 'tosca2heat/tosca-parser/toscaparser/tests')
0 files changed, 0 insertions, 0 deletions