Skip to content

Commit

Permalink
api: Fix errors w 8.0U2 GA update
Browse files Browse the repository at this point in the history
This patch addresses a build error after the update to 8.0U2 GA.
The VSLM client was using an invalid API syntax.
  • Loading branch information
akutz committed Sep 22, 2023
1 parent 9824af8 commit 11734bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vslm/object_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,11 @@ func (m ObjectManager) RegisterDisk(ctx context.Context, path, name string) (*ty
return &res.Returnval, nil
}

res, err := methods.HostRegisterDisk(ctx, m.c, (*types.HostRegisterDisk)(&req))
res, err := methods.HostRegisterDisk(ctx, m.c, &types.HostRegisterDisk{
This: m.Reference(),
Path: path,
Name: name,
})
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 11734bf

Please sign in to comment.