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;
|
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 }));
|
setDeployingScripts(prev => ({ ...prev, [resultIndex]: true }));
|
||||||
try {
|
try {
|
||||||
const deployResult = await api.deployPushScript(
|
const deployResult = await api.deployPushScript(
|
||||||
@@ -86,8 +90,8 @@ export default function DiscoveryResults({ scanId, scan, analysis, devMode, onCo
|
|||||||
scan.hostname,
|
scan.hostname,
|
||||||
pushMetric,
|
pushMetric,
|
||||||
{
|
{
|
||||||
port: scan.port || 22,
|
port: deployPort,
|
||||||
username: scan.username || 'root'
|
username: deployUsername
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user