Skip to content

Commit

Permalink
Update pkg/services/govmomi/vcenter/clone.go
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Schlotter <[email protected]>
  • Loading branch information
puneetkatyal and chrischdi authored Aug 29, 2023
1 parent d3615dd commit 3314ad7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/services/govmomi/vcenter/clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,13 +463,12 @@ func getNetworkSpecs(ctx *context.VMContext, devices object.VirtualDeviceList) (
}

func createPCIPassThroughDevice(deviceKey int32, backingInfo types.BaseVirtualDeviceBackingInfo) types.BaseVirtualDevice {
device := &types.VirtualPCIPassthrough{
return &types.VirtualPCIPassthrough{
VirtualDevice: types.VirtualDevice{
Key: deviceKey,
Backing: backingInfo,
},
}
return device
}

func getGpuSpecs(ctx *context.VMContext) []types.BaseVirtualDeviceConfigSpec {
Expand Down

0 comments on commit 3314ad7

Please sign in to comment.