fix(xo-server/metadata): missing Xapis should trigger a failure job (#4283)

Fixes #4281
This commit is contained in:
badrAZ
2019-06-19 15:20:26 +02:00
committed by Julien Fontanet
parent 238e9cd8cc
commit f44447ce71
4 changed files with 31 additions and 15 deletions
@@ -142,12 +142,14 @@ const getErrorMarkdown = task => {
const MARKDOWN_BY_TYPE = {
pool(task, { formatDate }) {
const { pool, poolMaster = {} } = task.data
const { id, pool = {}, poolMaster = {} } = task.data
const name = pool.name_label || poolMaster.name_label || UNKNOWN_ITEM
return {
body: [
`- **UUID**: ${pool.uuid}`,
pool.uuid !== undefined
? `- **UUID**: ${pool.uuid}`
: `- **ID**: ${id}`,
...getTemporalDataMarkdown(task.end, task.start, formatDate),
getErrorMarkdown(task),
],