From 75744e0010b075a706d998338e2d92a40994c2e9 Mon Sep 17 00:00:00 2001 From: Swapnil Date: Mon, 1 Jul 2024 18:15:14 +0530 Subject: [PATCH] Get nvme devices inside /sys/block/ instead of /dev --- agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent.py b/agent.py index 3f98381..842b0cc 100644 --- a/agent.py +++ b/agent.py @@ -157,7 +157,7 @@ class ServerData: return devices # Get the list of nvme devices starting with 'nvme' - nvme_devices = [device for device in os.listdir('/dev') if device.startswith('nvme')] + nvme_devices = [device for device in os.listdir('/sys/block') if device.startswith('nvme')] for device in nvme_devices: device_path = '/dev/' + device