Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
Corrects reference attribute from value to assetIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgrote committed Sep 18, 2018
1 parent 3e3e53e commit 226e2dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/assets.xml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
{% endif %}
{% endif %}{% endfor %}
{% if (ns.parent_id|length) > 0 %}
<reference name="${{ ns.parent_type[-1] }}" value="{{ ns.parent_id[-1] }}"/>
<reference name="${{ ns.parent_type[-1] }}" assetIDs="{{ ns.parent_id[-1] }}"/>
{% else %}{% set ns.completeIDs = ns.completeIDs + [asset_id] %}{% endif %}
</asset>
{% elif 'names' in asset %}
{% for asset_name in asset['names'] %}{% set ns.seq = ns.seq + 1 %}{% set asset_id = 'a' ~ ns.seq %}
<asset class="{{ qualifier }}-{{ asset['class'] }}" repr="{{ asset_name }}" ID="{{ asset_id }}">
<attribute name="name" value="{{ asset_name }}"/>
{% if (ns.parent_id|length) > 0 %}
<reference name="${{ ns.parent_type[-1] }}" value="{{ ns.parent_id[-1] }}"/>
<reference name="${{ ns.parent_type[-1] }}" assetIDs="{{ ns.parent_id[-1] }}"/>
</asset>
{% endif %}
{% endfor %}
Expand Down

0 comments on commit 226e2dd

Please sign in to comment.