Skip to content

Commit

Permalink
Merge pull request #1562 from grycap/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
micafer authored May 28, 2024
2 parents bcd1649 + 80ebf91 commit dbe796b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions IM/connectors/Kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ def _create_volumes(self, namespace, system, pod_name, auth_data):
res.append((name, disk_size, disk_mount_path))
else:
self.log_error("Error creating PersistentVolumeClaim:" + name)
self.error_messages += "Error creating PersistentVolumeClaim for pod %s" % name

cont += 1

Expand Down
14 changes: 7 additions & 7 deletions IM/tosca/Tosca.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,13 +468,7 @@ def _get_node_endpoints(self, node, nodetemplates):
""" Get all endpoint associated with a node """
endpoints = []

# First add its own endpoints
node_caps = node.get_capabilities()
if node_caps:
if "endpoint" in node_caps and node_caps["endpoint"]:
endpoints.append(node_caps["endpoint"])

# Now other hosted nodes ones
# First add hosted nodes ones
for other_node in nodetemplates:
root_type = Tosca._get_root_parent_type(other_node).type
compute = None
Expand All @@ -489,6 +483,12 @@ def _get_node_endpoints(self, node, nodetemplates):
if root_type == "tosca.capabilities.Endpoint":
endpoints.append(cap)

# Then add its own endpoints
node_caps = node.get_capabilities()
if node_caps:
if "endpoint" in node_caps and node_caps["endpoint"]:
endpoints.append(node_caps["endpoint"])

return endpoints

def _add_node_nets(self, node, radl, system, nodetemplates):
Expand Down

0 comments on commit dbe796b

Please sign in to comment.