Update
This commit is contained in:
parent
2c33854e43
commit
7fea517efa
|
|
@ -606,7 +606,7 @@ export default class LineConnection {
|
|||
lineNumber: this.config.lineNumber,
|
||||
inventory: this.config.inventory,
|
||||
latestScenario: {
|
||||
detectAI: { issue: detectLog, summary: '', status: [] },
|
||||
detectAI: detectLog,
|
||||
},
|
||||
data,
|
||||
})
|
||||
|
|
@ -1111,7 +1111,7 @@ export default class LineConnection {
|
|||
*****[DPELP]*****
|
||||
License: ${licenses.join(', ')}
|
||||
Detected by AI:
|
||||
${data.issues?.length ? `- ` + data.issues.join(`\n- `) : ''}
|
||||
${data.issues?.length ? `- ` + data.issues.join(`\n`) : ''}
|
||||
*****[Physical]*****
|
||||
Total Ports: ${portPhysical?.length}
|
||||
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'
|
||||
|
||||
// Issues
|
||||
const issues = Array.isArray(input.latestScenario?.detectAI?.issue)
|
||||
? input.latestScenario.detectAI.issue
|
||||
: input.latestScenario?.detectAI?.issue
|
||||
? [input.latestScenario.detectAI.issue]
|
||||
: []
|
||||
const issues = Array.isArray(input.latestScenario?.detectAI) ? input.latestScenario?.detectAI : []
|
||||
|
||||
// Issues
|
||||
const summary = input.latestScenario?.detectAI?.summary || ''
|
||||
const summary = ''
|
||||
|
||||
return {
|
||||
line,
|
||||
|
|
|
|||
Loading…
Reference in New Issue