From f35861157da8b55b63e968bbf79c41bdb5fe2631 Mon Sep 17 00:00:00 2001 From: Satheesh Rajendran Date: Fri, 3 Jan 2020 16:56:50 +0530 Subject: [PATCH] Fixup: update wrong import and usage of cpu utils Update wrong import and usage of cpu utils Signed-off-by: Satheesh Rajendran --- virttest/utils_stress.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/virttest/utils_stress.py b/virttest/utils_stress.py index 07e103785e..158667fcaa 100644 --- a/virttest/utils_stress.py +++ b/virttest/utils_stress.py @@ -7,7 +7,7 @@ from avocado.utils import cpu from virttest import virsh -from virttest import utils_hotplug +from virttest import cpu as cpuutil from virttest import utils_net from virttest.utils_test import libvirt from virttest.libvirt_xml.devices.disk import Disk @@ -111,7 +111,7 @@ def vm_stress_events(self, event, vm, params): 'cur_config': current_vcpu, 'cur_live': max_vcpu, 'guest_live': max_vcpu} - utils_hotplug.check_vcpu_value( + cpuutil.check_vcpu_value( vm, exp_vcpu, option="--live") time.sleep(self.event_sleep_time) result = virsh.setvcpus(vm.name, current_vcpu, "--live", @@ -123,7 +123,7 @@ def vm_stress_events(self, event, vm, params): 'cur_config': current_vcpu, 'cur_live': current_vcpu, 'guest_live': current_vcpu} - utils_hotplug.check_vcpu_value( + cpuutil.check_vcpu_value( vm, exp_vcpu, option="--live") elif "reboot" in event: vm.reboot()