* Fix bug.

This commit is contained in:
zhaoke
2022-12-29 06:28:30 +00:00
parent c55e8aea86
commit 55bdf2d47a
8 changed files with 81 additions and 25 deletions
+5
View File
@@ -399,6 +399,11 @@ class zanode extends control
{
$node = $this->zanode->getNodeById($hostID);
$serviceStatus = $this->zanode->getServiceStatus($node);
if ($node->status != 'running')
{
$serviceStatus['ZenAgent'] = "unknown";
$serviceStatus['ZTF'] = "unknown";
}
return $this->send(array('result' => 'success', 'message' => '', 'data' => $serviceStatus));
}