216f0e95b1
Needed to make one Cockpit test pass. Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
45 lines
1.3 KiB
Diff
45 lines
1.3 KiB
Diff
From f2d98e0ee81037f18e50c06e409def19e791c2f2 Mon Sep 17 00:00:00 2001
|
|
From: Ernestas Kulik <ekulik@redhat.com>
|
|
Date: Wed, 17 Apr 2019 13:24:19 +0200
|
|
Subject: [PATCH] lib: ureport: Export workflow when saving server response
|
|
|
|
Oversight from 779b16202c3fe990f6ecda17085c436899340e12.
|
|
|
|
Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
|
|
---
|
|
src/lib/ureport.c | 18 +++++++++++++++++-
|
|
1 file changed, 17 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/lib/ureport.c b/src/lib/ureport.c
|
|
index cc18aefd..a5953244 100644
|
|
--- a/src/lib/ureport.c
|
|
+++ b/src/lib/ureport.c
|
|
@@ -680,7 +680,23 @@ ureport_server_response_save_in_dump_dir(struct ureport_server_response *resp,
|
|
if (resp->urr_reported_to_list)
|
|
{
|
|
for (GList *e = resp->urr_reported_to_list; e; e = g_list_next(e))
|
|
- add_reported_to(dd, e->data);
|
|
+ {
|
|
+ char *workflow;
|
|
+
|
|
+ workflow = getenv("LIBREPORT_WORKFLOW");
|
|
+ if (NULL == workflow)
|
|
+ {
|
|
+ add_reported_to(dd, e->data);
|
|
+ }
|
|
+ else
|
|
+ {
|
|
+ g_autofree char *line = NULL;
|
|
+
|
|
+ line = g_strdup_printf("%s WORKFLOW=%s", (const char *)e->data, workflow);
|
|
+
|
|
+ add_reported_to(dd, line);
|
|
+ }
|
|
+ }
|
|
}
|
|
|
|
if (resp->urr_solution)
|
|
--
|
|
2.21.0
|
|
|