mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-06 04:10:13 +00:00
Allow missing agent host
This commit is contained in:
@@ -644,14 +644,6 @@ export async function signSshKey(
|
|||||||
messageIds.push(message.messageId);
|
messageIds.push(message.messageId);
|
||||||
|
|
||||||
const agentHost = siteAgentHostMap.get(siteId);
|
const agentHost = siteAgentHostMap.get(siteId);
|
||||||
if (!agentHost) {
|
|
||||||
return next(
|
|
||||||
createHttpError(
|
|
||||||
HttpCode.INTERNAL_SERVER_ERROR,
|
|
||||||
`Unable to determine agent host for site ${siteId}`
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
await sendToClient(newt.newtId, {
|
await sendToClient(newt.newtId, {
|
||||||
type: `newt/pam/connection`,
|
type: `newt/pam/connection`,
|
||||||
|
|||||||
Reference in New Issue
Block a user