mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-09-11 01:48:42 -06:00
Fixed Broken Device Inventory Data
This commit is contained in:
@@ -27,7 +27,6 @@ if ($Vite -and $Flask) {
|
||||
}
|
||||
|
||||
if ($Server) {
|
||||
$choice = '1'
|
||||
} elseif ($Agent) {
|
||||
$choice = '2'
|
||||
switch ($AgentAction) {
|
||||
|
@@ -16,6 +16,7 @@ try:
|
||||
except Exception:
|
||||
psutil = None # graceful degradation if unavailable
|
||||
import aiohttp
|
||||
import asyncio
|
||||
|
||||
|
||||
def detect_agent_os():
|
||||
@@ -551,4 +552,3 @@ async def send_agent_details(agent_id, config):
|
||||
except Exception as e:
|
||||
print(f"[WARN] Failed to send agent details: {e}")
|
||||
await asyncio.sleep(300)
|
||||
|
||||
|
Reference in New Issue
Block a user