mirror of https://github.com/nicolargo/glances.git
spliting labels on the first ':' only as a label value might contain ':'
This commit is contained in:
parent
9834e204c4
commit
2c1abd666e
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue