diff --git a/agent.py b/agent.py index c9fef42..128b4d0 100644 --- a/agent.py +++ b/agent.py @@ -171,7 +171,7 @@ class ServerData: # Get the output of nvme id-ctrl command output = subprocess.check_output(['nvme', 'id-ctrl', device_path], stderr=subprocess.STDOUT, universal_newlines=True) except subprocess.CalledProcessError as e: - print(f"Failed to get nvme id-ctrl output for {device_path}: {e}") + print("Failed to get nvme id-ctrl output for {}: {}".format(device_path, e)) continue # Split the output into lines