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 committed Feb 7, 2024
1 parent f83cda1 commit 84e30b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pydpu/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def __init__(
max_ncq: int = 0,
) -> None:
self.id = "opi-" + str(uuid.uuid1())
self.fullname = "nvmeSubsystems/{}/nvmeControllers{}".format(
self.fullname = "nvmeSubsystems/{}/nvmeControllers/{}".format(
subsystem.id, self.id
)
self.subsystem = subsystem
Expand Down Expand Up @@ -252,7 +252,7 @@ def __repr__(self) -> str:

def __init__(self, subsystem: NvmeSubsystem, volume: str) -> None:
self.id = "opi-" + str(uuid.uuid1())
self.fullname = "nvmeSubsystems/{}/nvmeNamespaces{}".format(
self.fullname = "nvmeSubsystems/{}/nvmeNamespaces/{}".format(
subsystem.id, self.id
)
self.subsystem = subsystem
Expand Down

0 comments on commit 84e30b1

Please sign in to comment.