Skip to content

Commit

Permalink
api: Fix object.VirtualDiskManager::Copy
Browse files Browse the repository at this point in the history
This patch fixes object.VirtualDiskManager::CopyVirtualDisk
so it takes an interface instead of a concrete type for the
destination disk spec.

Signed-off-by: akutz <akutz@vmware.com>
  • Loading branch information
akutz committed Dec 16, 2024
1 parent bde6f8c commit 7598ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion object/virtual_disk_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (m VirtualDiskManager) CopyVirtualDisk(
ctx context.Context,
sourceName string, sourceDatacenter *Datacenter,
destName string, destDatacenter *Datacenter,
destSpec *types.VirtualDiskSpec, force bool) (*Task, error) {
destSpec types.BaseVirtualDiskSpec, force bool) (*Task, error) {

req := types.CopyVirtualDisk_Task{
This: m.Reference(),
Expand Down

0 comments on commit 7598ae9

Please sign in to comment.