engine_report doesn't output valid yaml
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
Engine reports don't output valid yaml, even though we yaml.Marshal the content. This requires tools that consume the engine reports to jump over the non-yaml headers of the reports.
The fix is simple[1]:
diff --git a/worker/
index 6105381a4f.
--- a/worker/
+++ b/worker/
@@ -245,7 +245,7 @@ func (h depengineHandler) ServeHTTP(w http.ResponseWr
- fmt.Fprint(w, "Dependency Engine Report\n\n")
+ fmt.Fprint(w, "# Dependency Engine Report\n\n")
_, _ = w.Write(bytes)
}
Changed in juju: | |
importance: | Undecided → Medium |
status: | New → Triaged |
We can leave the test/plain content-type as this generally gets saved to a file and we don't care about this.