Skip to content

Commit

Permalink
Merge pull request #2169 from brianhlin/SOFTWARE-4919.fix-multiple-tags
Browse files Browse the repository at this point in the history
Fix tag list in generated XML (SOFTWARE-4919)
  • Loading branch information
matyasselmeci authored Dec 1, 2021
2 parents 7b3417e + b62470b commit 77e9ff4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/schema/rgsummary.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
<xsd:element name="Tags">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" name="Tag" type="xsd:string" />
<xsd:element minOccurs="0" maxOccurs="unbounded" name="Tag" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
Expand Down
4 changes: 2 additions & 2 deletions src/webapp/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ def _expand_services(self, services: Dict) -> List[OrderedDict]:
svc.move_to_end("ID", last=False)
return services_list

def _expand_tags(self, tags: List) -> List[Dict]:
return [ {"Tag": tag} for tag in tags ]
def _expand_tags(self, tags: List) -> Dict[str, list]:
return {"Tag": tags}

@staticmethod
def _expand_voownership(voownership: Dict) -> OrderedDict:
Expand Down

0 comments on commit 77e9ff4

Please sign in to comment.