File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ import (
2626 . "github.com/onsi/gomega"
2727 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2828 "sigs.k8s.io/controller-runtime/pkg/client"
29- crclient "sigs.k8s.io/controller-runtime/pkg/client"
3029
3130 vmopbuilder "github.com/deckhouse/virtualization-controller/pkg/builder/vmop"
3231 "github.com/deckhouse/virtualization-controller/pkg/controller/conditions"
@@ -158,7 +157,7 @@ func IsRestartRequired(vm *v1alpha2.VirtualMachine, timeout time.Duration) bool
158157 }
159158
160159 Eventually (func (g Gomega ) {
161- err := framework .GetClients ().GenericClient ().Get (context .Background (), crclient .ObjectKeyFromObject (vm ), vm )
160+ err := framework .GetClients ().GenericClient ().Get (context .Background (), client .ObjectKeyFromObject (vm ), vm )
162161 g .Expect (err ).NotTo (HaveOccurred ())
163162 needRestart , _ := conditions .GetCondition (vmcondition .TypeAwaitingRestartToApplyConfiguration , vm .Status .Conditions )
164163 g .Expect (needRestart .Status ).To (Equal (metav1 .ConditionTrue ))
You can’t perform that action at this time.
0 commit comments