From 867c9b76c3cb1333d807d912de11c7965d72c405 Mon Sep 17 00:00:00 2001 From: Yun Mao Date: Mon, 13 Aug 2012 17:02:35 -0400 Subject: Change time.sleep to greenthread.sleep time is not imported. use greenthread to make it consistent with the rest of the module Change-Id: Iea6b2b0f49faa5e48198b61ff1b0ef52da58f48b --- nova/virt/libvirt/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova') diff --git a/nova/virt/libvirt/driver.py b/nova/virt/libvirt/driver.py index a4a83a739..836f8a34b 100644 --- a/nova/virt/libvirt/driver.py +++ b/nova/virt/libvirt/driver.py @@ -2554,7 +2554,7 @@ class LibvirtDriver(driver.ComputeDriver): LOG.warn(_("plug_vifs() failed %(cnt)d." "Retry up to %(max_retry)d for %(hostname)s.") % locals()) - time.sleep(1) + greenthread.sleep(1) def pre_block_migration(self, ctxt, instance_ref, disk_info_json): """Preparation block migration. -- cgit