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
This commit is contained in:
Yun Mao
2012-08-13 17:02:35 -04:00
parent 4d9cca956c
commit 867c9b76c3

View File

@@ -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.