Update flask_server.py

This commit is contained in:
MacRimi
2025-10-26 22:58:56 +01:00
parent 05093a9d49
commit 0d7b278003

View File

@@ -5289,8 +5289,8 @@ def api_vm_config_update(vmid):
'error': config_result.stderr 'error': config_result.stderr
}), 500 }), 500
else: else:
return jsonify({'error': 'Failed to get VM return jsonify({'error': 'Failed to get VM details'}), 500
except Exception as e: except Exception as e:
print(f"Error updating VM configuration: {e}") print(f"Error updating VM configuration: {e}")
return jsonify({'error': str(e)}), 500 return jsonify({'error': str(e)}), 500
@@ -5311,4 +5311,4 @@ if __name__ == '__main__':
# Print only essential information # Print only essential information
print("API endpoints available at: /api/system, /api/system-info, /api/storage, /api/proxmox-storage, /api/network, /api/vms, /api/logs, /api/health, /api/hardware, /api/prometheus, /api/node/metrics") print("API endpoints available at: /api/system, /api/system-info, /api/storage, /api/proxmox-storage, /api/network, /api/vms, /api/logs, /api/health, /api/hardware, /api/prometheus, /api/node/metrics")
app.run(host='0.0.0.0', port=8008, debug=False) app.run(host='0.0.0.0', port=8008, debug=False)