mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 22:55:24 +00:00
fix: fleets, proxmox and automations not getting the host sudo password
This commit is contained in:
1 parent
6f442c5863
commit
5e31642379
8 files changed
+65
-5
No files matched your search
@@ -275,7 +275,13 @@ async function discoverProxmoxGuestsForHost(
|
||||
timeoutMs: 35000,
|
||||
overrides: { tryKeyboard: false, readyTimeout: 30000 },
|
||||
});
|
||||
const hostWithSudo: PluginSshHostWithSudo = host;
|
||||
// connect() always hands back a redacted host; the sudo password comes
|
||||
// from resolveHost, which needs credentials:read.
|
||||
const full = await ctx.ssh.resolveHost(parsedHostId);
|
||||
const hostWithSudo: PluginSshHostWithSudo = {
|
||||
...host,
|
||||
sudoPassword: (full?.sudoPassword as string | undefined) ?? undefined,
|
||||
};
|
||||
const hostCredentialId = (hostWithSudo.credentialId as number | null) ?? null;
|
||||
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user