Skip to content

Commit 11481f7

Browse files
author
Valeriy Khorunzhin
committed
refactoring
Signed-off-by: Valeriy Khorunzhin <[email protected]>
1 parent 76f150a commit 11481f7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/e2e/vmop/restore.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,7 @@ func (r *restoreModeTest) getVMBDADiskSerialNumber(vdName string) (string, bool)
377377
Version: "v1",
378378
Kind: "InternalVirtualizationVirtualMachineInstance",
379379
})
380-
err := r.Framework.Clients.GenericClient().Get(context.Background(), types.NamespacedName{
381-
Namespace: r.VM.Namespace,
382-
Name: r.VM.Name,
383-
}, unstructuredVMI)
380+
err := r.Framework.Clients.GenericClient().Get(context.Background(), crclient.ObjectKeyFromObject(r.VM), unstructuredVMI)
384381
Expect(err).NotTo(HaveOccurred())
385382

386383
var kvvmi virtv1.VirtualMachineInstance

0 commit comments

Comments
 (0)