Skip to content

Commit

Permalink
fix: ensure proper vSAN URI format in ResolveLibraryItemStorage
Browse files Browse the repository at this point in the history
ConvertNamespacePathToUuidPath() fails when given:
"ds:/path..."
Requires:
"ds:///path..."
  • Loading branch information
dougm committed Oct 9, 2024
1 parent ff95505 commit 05544f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vapi/library/finder/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ func (f *PathFinder) ResolveLibraryItemStorage(ctx context.Context, storage []li
if err != nil {
return err
}
uri.OmitHost = false // `ds://` required for ConvertNamespacePathToUuidPath()
uri.Path = path.Clean(uri.Path) // required for ConvertNamespacePathToUuidPath()
uri.RawQuery = ""
u, err := f.convertPath(ctx, b, uri.String())
Expand Down

0 comments on commit 05544f7

Please sign in to comment.