Add debug logging for script deployment
All checks were successful
Build and Push Container / build (push) Successful in 37s

This commit is contained in:
Debian
2026-01-05 10:00:40 +00:00
parent 97153aa861
commit ebaadbdffa

View File

@@ -79,6 +79,10 @@ export default function DiscoveryResults({ scanId, scan, analysis, devMode, onCo
return;
}
const deployUsername = scan.username || 'root';
const deployPort = scan.port || 22;
console.log('Deploying script with:', { monitorId, hostname: scan.hostname, pushMetric, username: deployUsername, port: deployPort, scanData: scan });
setDeployingScripts(prev => ({ ...prev, [resultIndex]: true }));
try {
const deployResult = await api.deployPushScript(
@@ -86,8 +90,8 @@ export default function DiscoveryResults({ scanId, scan, analysis, devMode, onCo
scan.hostname,
pushMetric,
{
port: scan.port || 22,
username: scan.username || 'root'
port: deployPort,
username: deployUsername
}
);