Skip to content

Commit

Permalink
Remove duplicate detection for templates (#352)
Browse files Browse the repository at this point in the history
Updated the test to allow both templates to exist site by site.

Signed-off-by: Hannes Baum <hannes.baum@cloudandheat.com>
  • Loading branch information
cah-hbaum committed Jan 17, 2024
1 parent 08fac09 commit 2781c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/chk_adrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def check_names(self, mds):
"""Check the list `mds` of md file names for name collisions"""
# count the occurrences of the prefixes of length 12, e.g., scs-0001-v1-
# no duplicates allowed
counts = collections.Counter([fn[:12] for fn in mds])
counts = collections.Counter([fn[:12] for fn in mds if 'XXXX' not in fn])
duplicates = sorted([fn for fn in mds if counts[fn[:12]] > 1])
if duplicates:
self.emit(f"duplicates found: {', '.join(duplicates)}")
Expand Down

0 comments on commit 2781c89

Please sign in to comment.