Initial
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { parseJson } from '../db.js';
|
||||
import { normalizeOsFamily } from '../utils/osFamily.js';
|
||||
|
||||
export function camelGroup(row) {
|
||||
return { id: row.id, name: row.name, description: row.description, createdAt: row.created_at };
|
||||
@@ -26,7 +27,7 @@ export function camelHost(row) {
|
||||
name: row.name,
|
||||
fqdn: row.fqdn,
|
||||
address: row.address,
|
||||
osFamily: row.os_family,
|
||||
osFamily: normalizeOsFamily(row.os_family, 'other'),
|
||||
transport: row.transport,
|
||||
port: row.port,
|
||||
credentialId: row.credential_id,
|
||||
@@ -53,6 +54,7 @@ export function camelVCenterConnection(row) {
|
||||
baseUrl: row.base_url,
|
||||
username: row.username,
|
||||
hasPassword: Boolean(row.secret_cipher),
|
||||
targetType: row.target_type || 'vcenter',
|
||||
apiMode: row.api_mode || 'auto',
|
||||
requestTimeoutMs: row.request_timeout_ms || 20000,
|
||||
allowUntrustedTls: Boolean(row.allow_untrusted_tls),
|
||||
|
||||
Reference in New Issue
Block a user