Update
This commit is contained in:
parent
2c33854e43
commit
7fea517efa
|
|
@ -606,7 +606,7 @@ export default class LineConnection {
|
||||||
lineNumber: this.config.lineNumber,
|
lineNumber: this.config.lineNumber,
|
||||||
inventory: this.config.inventory,
|
inventory: this.config.inventory,
|
||||||
latestScenario: {
|
latestScenario: {
|
||||||
detectAI: { issue: detectLog, summary: '', status: [] },
|
detectAI: detectLog,
|
||||||
},
|
},
|
||||||
data,
|
data,
|
||||||
})
|
})
|
||||||
|
|
@ -1111,7 +1111,7 @@ export default class LineConnection {
|
||||||
*****[DPELP]*****
|
*****[DPELP]*****
|
||||||
License: ${licenses.join(', ')}
|
License: ${licenses.join(', ')}
|
||||||
Detected by AI:
|
Detected by AI:
|
||||||
${data.issues?.length ? `- ` + data.issues.join(`\n- `) : ''}
|
${data.issues?.length ? `- ` + data.issues.join(`\n`) : ''}
|
||||||
*****[Physical]*****
|
*****[Physical]*****
|
||||||
Total Ports: ${portPhysical?.length}
|
Total Ports: ${portPhysical?.length}
|
||||||
Ports Tested (Link UP): ${tested.length} (${testedPoE?.length} PoE, ${testedSFP?.length} SFP)
|
Ports Tested (Link UP): ${tested.length} (${testedPoE?.length} PoE, ${testedSFP?.length} SFP)
|
||||||
|
|
|
||||||
|
|
@ -225,14 +225,10 @@ export function mapToLineFormat(input: InputData) {
|
||||||
// const mode = dataPlatform && !dataPlatform.output?.includes('Incomplete') ? 'DPELP' : 'DPEL'
|
// const mode = dataPlatform && !dataPlatform.output?.includes('Incomplete') ? 'DPELP' : 'DPEL'
|
||||||
|
|
||||||
// Issues
|
// Issues
|
||||||
const issues = Array.isArray(input.latestScenario?.detectAI?.issue)
|
const issues = Array.isArray(input.latestScenario?.detectAI) ? input.latestScenario?.detectAI : []
|
||||||
? input.latestScenario.detectAI.issue
|
|
||||||
: input.latestScenario?.detectAI?.issue
|
|
||||||
? [input.latestScenario.detectAI.issue]
|
|
||||||
: []
|
|
||||||
|
|
||||||
// Issues
|
// Issues
|
||||||
const summary = input.latestScenario?.detectAI?.summary || ''
|
const summary = ''
|
||||||
|
|
||||||
return {
|
return {
|
||||||
line,
|
line,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue