Skip to content

Commit

Permalink
fix(storage): add missing '/' in nvme names
Browse files Browse the repository at this point in the history
Signed-off-by: Artsiom Koltun <[email protected]>
  • Loading branch information
artek-koltun authored and sandersms committed Feb 8, 2024
1 parent 7bc1ed1 commit d28a1cd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pydpu/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit d28a1cd

Please sign in to comment.