From d28a1cd47ebc3fbdcc6000a62cb963066fdd2b2f Mon Sep 17 00:00:00 2001 From: Artsiom Koltun Date: Wed, 7 Feb 2024 10:04:25 +0100 Subject: [PATCH] fix(storage): add missing '/' in nvme names Signed-off-by: Artsiom Koltun --- pydpu/storage.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pydpu/storage.py b/pydpu/storage.py index 7ae0e09..504b143 100644 --- a/pydpu/storage.py +++ b/pydpu/storage.py @@ -137,9 +137,7 @@ def __init__( max_ncq: int = 0, ) -> None: self.id = "opi-" + str(uuid.uuid1()) - self.name = "nvmeSubsystems/{}/nvmeControllers{}".format( - subsystem.id, self.id - ) + self.name = "nvmeSubsystems/{}/nvmeControllers/{}".format(subsystem.id, self.id) self.subsystem = subsystem self.queue = queue self.pf = pf @@ -252,9 +250,7 @@ def __repr__(self) -> str: def __init__(self, subsystem: NvmeSubsystem, volume: str) -> None: self.id = "opi-" + str(uuid.uuid1()) - self.name = "nvmeSubsystems/{}/nvmeNamespaces{}".format( - subsystem.id, self.id - ) + self.name = "nvmeSubsystems/{}/nvmeNamespaces/{}".format(subsystem.id, self.id) self.subsystem = subsystem self.volume = volume