Fixes inconsistent key password property name (#384)

Corrects the property name for key-based authentication from `key_password` to `keyPassword` to ensure consistency with the expected data structure. This resolves potential issues with mismatched property names during SSH host configuration.
This commit was merged in pull request #384.
This commit is contained in:
Ved Prakash
2025-10-09 09:53:33 +05:30
committed by GitHub
parent 9d78fca870
commit b07f210b5d

View File

@@ -1412,7 +1412,7 @@ router.post(
hostData.authType === "credential" ? hostData.credentialId : null,
key: hostData.authType === "key" ? hostData.key : null,
key_password:
hostData.authType === "key" ? hostData.key_password : null,
hostData.authType === "key" ? hostData.keyPassword : null,
keyType:
hostData.authType === "key" ? hostData.keyType || "auto" : null,
pin: hostData.pin || false,