|
|
@ -6,7 +6,7 @@ import path from 'path'; |
|
|
|
import { REP_UUID } from '../../consts/REG_EXP_PATTERNS'; |
|
|
|
import { REP_UUID } from '../../consts/REG_EXP_PATTERNS'; |
|
|
|
import SERVER_PATHS from '../../consts/SERVER_PATHS'; |
|
|
|
import SERVER_PATHS from '../../consts/SERVER_PATHS'; |
|
|
|
|
|
|
|
|
|
|
|
import { dbQuery, sub } from '../../accessModule'; |
|
|
|
import { dbQuery, getLocalHostUUID, sub } from '../../accessModule'; |
|
|
|
import { sanitizeQS } from '../../sanitizeQS'; |
|
|
|
import { sanitizeQS } from '../../sanitizeQS'; |
|
|
|
import { mkfifo, rm } from '../../shell'; |
|
|
|
import { mkfifo, rm } from '../../shell'; |
|
|
|
|
|
|
|
|
|
|
@ -42,9 +42,7 @@ export const getServerDetail: RequestHandler = (request, response) => { |
|
|
|
let requestHostUUID: string, serverHostUUID: string; |
|
|
|
let requestHostUUID: string, serverHostUUID: string; |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
requestHostUUID = sub('host_uuid', { |
|
|
|
requestHostUUID = getLocalHostUUID(); |
|
|
|
subModuleName: 'Get', |
|
|
|
|
|
|
|
}).stdout; |
|
|
|
|
|
|
|
} catch (subError) { |
|
|
|
} catch (subError) { |
|
|
|
console.log(`Failed to get local host UUID; CAUSE: ${subError}`); |
|
|
|
console.log(`Failed to get local host UUID; CAUSE: ${subError}`); |
|
|
|
|
|
|
|
|
|
|
|