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