Skip to content

Commit

Permalink
include tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeisel committed Jan 11, 2024
1 parent 93b373e commit 88b64e3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ public static ServiceTemplateId completeModelBasedOnReqs(ServiceTemplateId incom
.setName(placementId.getXmlId().getDecoded())
.setTargetNamespace(incompleteServiceTemplateId.getNamespace().getDecoded())
// .setBoundaryDefinitions(incompleteServiceTemplate.getBoundaryDefinitions())
.setTags(incompleteServiceTemplate.getTags())
.build();

// resolve open requirements until the topology is completed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,11 @@ public Builder setSubstitutableNodeType(QName substitutableNodeType) {
return this;
}

public Builder setTags(List<TTag> tags) {
super.addTags(tags);
return this;
}

@Override
public Builder self() {
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1745,6 +1745,7 @@ public ServiceTemplateId completeNextRequirement(ServiceTemplateId id, List<QNam
matchedServiceTemplate.setId(matchedServiceTemplate.getName());
matchedServiceTemplate.setTargetNamespace(id.getNamespace().getDecoded());
matchedServiceTemplate.setTags(serviceTemplate.getTags());
assert topologyTemplate != null;
topologyTemplate.getNodeTemplates().forEach(t -> ModelUtilities.setTargetLabel(t, "*"));
matchedServiceTemplate.setTopologyTemplate(getMatchingTopology(BackendUtils.clone(matchedServiceTemplate), blacklist, policies));

Expand Down

0 comments on commit 88b64e3

Please sign in to comment.