refactor(striker-ui-api): relocate bad ssh key state name prefix

main^2
Tsu-ba-me 7 months ago
parent 84d89a0e3b
commit ce0c36af33
  1. 1
      striker-ui-api/src/lib/consts/index.ts
  2. 7
      striker-ui-api/src/lib/request_handlers/command/getHostSSH.ts
  3. 2
      striker-ui-api/src/lib/request_handlers/ssh-key/getSSHKeyConflict.ts

@ -6,6 +6,7 @@ export * from './AN_VARIABLE_NAME_LIST';
export * from './DELETED'; export * from './DELETED';
export * from './ENV'; export * from './ENV';
export * from './EXIT_CODE_LIST'; export * from './EXIT_CODE_LIST';
export * from './HOST_KEY_CHANGED_PREFIX';
export * from './LOCAL'; export * from './LOCAL';
export * from './NODE_AND_DR_RESERVED_MEMORY_SIZE'; export * from './NODE_AND_DR_RESERVED_MEMORY_SIZE';
export * from './OS_LIST'; export * from './OS_LIST';

@ -1,8 +1,11 @@
import assert from 'assert'; import assert from 'assert';
import { RequestHandler } from 'express'; import { RequestHandler } from 'express';
import { REP_IPV4, REP_PEACEFUL_STRING } from '../../consts'; import {
import { HOST_KEY_CHANGED_PREFIX } from '../../consts/HOST_KEY_CHANGED_PREFIX'; HOST_KEY_CHANGED_PREFIX,
REP_IPV4,
REP_PEACEFUL_STRING,
} from '../../consts';
import { getLocalHostUUID, getPeerData, query } from '../../accessModule'; import { getLocalHostUUID, getPeerData, query } from '../../accessModule';
import { sanitize } from '../../sanitize'; import { sanitize } from '../../sanitize';

@ -1,4 +1,4 @@
import { HOST_KEY_CHANGED_PREFIX } from '../../consts/HOST_KEY_CHANGED_PREFIX'; import { HOST_KEY_CHANGED_PREFIX } from '../../consts';
import { getLocalHostUUID } from '../../accessModule'; import { getLocalHostUUID } from '../../accessModule';
import buildGetRequestHandler from '../buildGetRequestHandler'; import buildGetRequestHandler from '../buildGetRequestHandler';

Loading…
Cancel
Save