Skip to content

Commit

Permalink
fix(storage/frontend): precede nvme parent collections with nvme
Browse files Browse the repository at this point in the history
Signed-off-by: Artsiom Koltun <artsiom.koltun@intel.com>
  • Loading branch information
artek-koltun committed Feb 1, 2024
1 parent cf31f02 commit 9a2f2b3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions storage/test/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ func resourceIDToVolumeName(resourceID string) string {

func resourceIDToSubsystemName(resourceID string) string {
return resourcename.Join(
"subsystems", resourceID,
"nvmeSubsystems", resourceID,
)
}

func resourceIDToNamespaceName(subsysResourceID, ctrlrResourceID string) string {
return resourcename.Join(
"subsystems", subsysResourceID,
"namespaces", ctrlrResourceID,
"nvmeSubsystems", subsysResourceID,
"nvmeNamespaces", ctrlrResourceID,
)
}

func resourceIDToControllerName(subsysResourceID, ctrlrResourceID string) string {
return resourcename.Join(
"subsystems", subsysResourceID,
"controllers", ctrlrResourceID,
"nvmeSubsystems", subsysResourceID,
"nvmeControllers", ctrlrResourceID,
)
}

Expand Down

0 comments on commit 9a2f2b3

Please sign in to comment.