added diag content
This commit is contained in:
4
app.py
4
app.py
@ -163,8 +163,10 @@ def get_diagnostics():
|
||||
config = load_config()
|
||||
diagnostics = {}
|
||||
for device in config['devices']:
|
||||
if device['device_id']:
|
||||
if device.get('device_id'):
|
||||
logger.debug(f"Fetching diagnostics for device: {device['name']}")
|
||||
diagnostics[device['name']] = run_diagnostics(device)
|
||||
logger.debug(f"Returning diagnostics: {diagnostics}")
|
||||
return jsonify(diagnostics)
|
||||
|
||||
# Application entry point
|
||||
|
||||
Reference in New Issue
Block a user