spliting labels on the first ':' only as a label value might contain ':'

This commit is contained in:
Adi 2025-09-23 12:51:54 +03:00
parent 9834e204c4
commit 2c1abd666e
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ class GlancesExport:
d_tags = {}
if tags:
try:
d_tags = dict([x.split(":") for x in tags.split(",")])
d_tags = dict(x.split(":", 1) for x in tags.split(","))
except ValueError:
# one of the 'key:value' pairs was missing
logger.info("Invalid tags passed: %s", tags)