|
|
@ -4,8 +4,6 @@ import { RequestHandler } from 'express'; |
|
|
|
import { getAnvilData, getHostData, query } from '../../accessModule'; |
|
|
|
import { getAnvilData, getHostData, query } from '../../accessModule'; |
|
|
|
import { stderr } from '../../shell'; |
|
|
|
import { stderr } from '../../shell'; |
|
|
|
|
|
|
|
|
|
|
|
type DbBoolean = 0 | 1; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const buildHostStateMessage = (postfix = 2) => `message_022${postfix}`; |
|
|
|
const buildHostStateMessage = (postfix = 2) => `message_022${postfix}`; |
|
|
|
|
|
|
|
|
|
|
|
export const getAnvilDetail: RequestHandler< |
|
|
|
export const getAnvilDetail: RequestHandler< |
|
|
@ -63,10 +61,10 @@ export const getAnvilDetail: RequestHandler< |
|
|
|
if (hstatus !== 'online') continue; |
|
|
|
if (hstatus !== 'online') continue; |
|
|
|
|
|
|
|
|
|
|
|
let rows: [ |
|
|
|
let rows: [ |
|
|
|
inCcm: DbBoolean, |
|
|
|
inCcm: NumberBoolean, |
|
|
|
crmdMember: DbBoolean, |
|
|
|
crmdMember: NumberBoolean, |
|
|
|
clusterMember: DbBoolean, |
|
|
|
clusterMember: NumberBoolean, |
|
|
|
maintenanceMode: DbBoolean, |
|
|
|
maintenanceMode: NumberBoolean, |
|
|
|
][]; |
|
|
|
][]; |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|