From 718d2731ef9ef1264284e1b7526c2cbe30b5ccf0 Mon Sep 17 00:00:00 2001 From: "R. Florian von Cube" Date: Thu, 7 Sep 2023 15:13:47 +0200 Subject: [PATCH] Clean meta values from special characters. --- collectors/htcondor/src/auditor_htcondor_collector/collector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collectors/htcondor/src/auditor_htcondor_collector/collector.py b/collectors/htcondor/src/auditor_htcondor_collector/collector.py index eba0dbf6..72d90eca 100644 --- a/collectors/htcondor/src/auditor_htcondor_collector/collector.py +++ b/collectors/htcondor/src/auditor_htcondor_collector/collector.py @@ -213,7 +213,7 @@ def _get_meta(self, job: dict) -> Meta: for item in entry if isinstance(entry, list) else [entry]: value = get_value(item, job) if value is not None: - values.append(value) + values.append(quote(value, safe="")) if key == "site": # site is a special case break if not values: