Skip to content

Commit

Permalink
fix: using only those tags causes many collisions
Browse files Browse the repository at this point in the history
Switching to a negative model - tags to ignore
  • Loading branch information
amunchet committed Dec 7, 2023
1 parent defa607 commit fdc6182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -1804,8 +1804,8 @@ def bulk_insert():
replacements = {
"name" : item["name"]
}
tags = ("host", "ip", "mac", "labyrinth_name")
for tag in [x for x in tags if x in item["tags"]]:
tags = ("agent_name")
for tag in [x for x in tags if x not in item["tags"]]:
replacements[f"tags.{tag}"] = item["tags"][tag]


Expand Down

0 comments on commit fdc6182

Please sign in to comment.