Create function check status for other system
This commit is contained in:
parent
1df5dad95c
commit
c944e29c51
|
|
@ -915,7 +915,7 @@ const checkMultipleRequest = async () => {
|
|||
}
|
||||
|
||||
if (req.method === "SSH") {
|
||||
exec(req.url, (error, stdout, stderr) => {
|
||||
await exec(req.url, (error, stdout, stderr) => {
|
||||
if (error) {
|
||||
allResponse+=JSON.stringify(req.name+"\n"+error)
|
||||
report.push({
|
||||
|
|
@ -925,7 +925,6 @@ const checkMultipleRequest = async () => {
|
|||
code: error.status,
|
||||
lengthOrData: "Error: " + error,
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
if (stdout !== "") {
|
||||
|
|
|
|||
Loading…
Reference in New Issue