Add debug logging for script deployment
All checks were successful
Build and Push Container / build (push) Successful in 37s
All checks were successful
Build and Push Container / build (push) Successful in 37s
This commit is contained in:
@@ -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
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user