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