Skip to content

Commit

Permalink
Merge pull request #1232 from grycap/devel
Browse files Browse the repository at this point in the history
Fix  #1231
  • Loading branch information
micafer authored Oct 27, 2021
2 parents 053caa0 + be0aab8 commit d62ec00
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion IM/tosca/Tosca.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,10 @@ def _add_node_nets(self, node, radl, system, nodetemplates):
if cap_props and "private_ip" in cap_props:
private_ip = self._final_function_result(cap_props["private_ip"].value, node)
if cap_props and "ports" in cap_props:
ports = self._final_function_result(cap_props["ports"].value, node)
node_ports = self._final_function_result(cap_props["ports"].value, node)
if node_ports:
for p in node_ports.values():
ports[id(p)] = p
if cap_props and "port" in cap_props:
port = self._final_function_result(cap_props["port"].value, node)
protocol = "tcp"
Expand Down

0 comments on commit d62ec00

Please sign in to comment.